summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-11-24 04:47:05 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-11-24 04:47:05 (GMT)
commit5fda2f6fb713b9bf76a1918278018a5e3feaa2d1 (patch)
tree37eff9845dfac1d899c15395c742510af0712681 /Lib
parent96bc1757ce5eb25cb536c03aabb06fcbc42b6d27 (diff)
downloadcpython-5fda2f6fb713b9bf76a1918278018a5e3feaa2d1.zip
cpython-5fda2f6fb713b9bf76a1918278018a5e3feaa2d1.tar.gz
cpython-5fda2f6fb713b9bf76a1918278018a5e3feaa2d1.tar.bz2
Add a missing docstring
Diffstat (limited to 'Lib')
-rw-r--r--Lib/collections.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/collections.py b/Lib/collections.py
index 1dcd233..66e8a24 100644
--- a/Lib/collections.py
+++ b/Lib/collections.py
@@ -1,3 +1,15 @@
+'''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
+* 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
+
+'''
+
__all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict']
# For bootstrapping reasons, the collection ABCs are defined in _abcoll.py.
# They should however be considered an integral part of collections.py.