diff options
author | Raymond Hettinger <python@rcn.com> | 2015-11-24 04:43:56 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-11-24 04:43:56 (GMT) |
commit | a89013d9300e13062da465ff671f97efa0ab88a3 (patch) | |
tree | 7d0e5d6cb9a4cee4b0e413aff380f58874dfca7a /Lib/collections | |
parent | 745f6b3a5db0a9b1cdae7b20c7be2c3c8a3240a7 (diff) | |
parent | c9c3dd87c1235dfaae49602ec7ba279b6d6be9a3 (diff) | |
download | cpython-a89013d9300e13062da465ff671f97efa0ab88a3.zip cpython-a89013d9300e13062da465ff671f97efa0ab88a3.tar.gz cpython-a89013d9300e13062da465ff671f97efa0ab88a3.tar.bz2 |
merge
Diffstat (limited to 'Lib/collections')
-rw-r--r-- | Lib/collections/__init__.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index 638a4ca..7ee1755 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -1,3 +1,19 @@ +'''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 +* deque list-like container with fast appends and pops on either end +* ChainMap dict-like class for creating a single view of multiple mappings +* Counter dict subclass for counting hashable objects +* OrderedDict dict subclass that remembers the order entries were added +* defaultdict dict subclass that calls a factory function to supply missing values +* UserDict wrapper around dictionary objects for easier dict subclassing +* UserList wrapper around list objects for easier list subclassing +* UserString wrapper around string objects for easier string subclassing + +''' + __all__ = ['deque', 'defaultdict', 'namedtuple', 'UserDict', 'UserList', 'UserString', 'Counter', 'OrderedDict', 'ChainMap'] |