PyQt5 support in Matplotlib

My pull-request for matplotlib to add PyQt5 support has been accepted and merged, meaning PyQt5 support will be available in the upcoming v1.4.0 release of matplotlib.

Based off original work by @badders this re-implements the Qt backend structure as Qt5-first, with Qt4 wrappers for compatibility. It's hoped that this will simplify things going forward, keeping the latest API cleanest with minimal code-cruft.

Thanks to the matplotlib team for the support in getting the PR up to scratch.

Continue reading

Dictionary Views & Set Operations

The keys, values and items from a dictionary can be accessed using the .keys(), .values() and .items() methods. These methods return view objects which provide a view on the source dictionary. The view objects dict_keys and dict_items support set-like operations (the latter only when all values are hashable) which ... More

Discussion