8.3. collections — High-performance container datatypes — Python 2.7.13 documentation

index modules | next | previous | Python » 2.7.13 Documentation » The Python Standard Library » 8. Data Types » collections ¶ New in version 2.4. Source code: Lib/collections.py and Lib/_abcoll.py This module implements specialized container datatypes providing alternatives to Python’s general purpose built-in containers, dict , list , set , and tuple . namedtuple() factory function for creating tuple subclasses with named fields New in version 2.6. deque list-like container with fast appends and pops on either end New in version 2.4. Counter dict subclass for counting hashable objects New in version 2.7. OrderedDict dict subclass that remembers the order entries were added New in version 2.7. defaultdict dict subclass that calls a factory function to supply missing values New in version 2.5. In addition to the concre...

Linked on 2017-01-09 17:54:01 | Similar Links