April 2016
Intermediate to advanced
486 pages
9h 21m
English
The following collections are mostly just extensions of base collections, some of them fairly simple and others a bit more advanced. For all of them though, it is important to know the characteristics of the underlying structures. Without understanding them, it will be difficult to comprehend the characteristics of these collections.
There are a few collections that are implemented in native C code for performance reasons, but all of them can easily be implemented in pure Python as well.
Introduced in Python 3.3, ChainMap allows you to combine multiple mappings (dictionaries for example) into one. This is especially useful when combining multiple contexts. For example, when looking for a variable ...
Read now
Unlock full access