diff options
author | Raymond Hettinger <python@rcn.com> | 2009-02-17 08:33:01 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-02-17 08:33:01 +0000 |
commit | f746a1f1e4b84d0389cdc1c795171d2ad4944bac (patch) | |
tree | 10cbeba976d3475324905155c9d7f8ed8709946b | |
parent | 7c98a6d4dceecc5dd8b117212e07630d625e6565 (diff) | |
download | cpython-git-f746a1f1e4b84d0389cdc1c795171d2ad4944bac.tar.gz |
Fix-up intro paragraph for collections docs.
-rw-r--r-- | Doc/library/collections.rst | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index f32ad76eae..ab9d50543a 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -16,30 +16,30 @@ __name__ = '<doctest>' This module implements high-performance container datatypes. Currently, -there are two datatypes, :class:`deque` and :class:`defaultdict`, and -one datatype factory function, :func:`namedtuple`. +there are three datatypes, :class:`Counter`, :class:`deque` and +:class:`defaultdict`, and one datatype factory function, :func:`namedtuple`. + +The specialized containers provided in this module provide alternatives +to Python's general purpose built-in containers, :class:`dict`, +:class:`list`, :class:`set`, and :class:`tuple`. + +.. versionchanged:: 2.4 + Added :class:`deque`. .. versionchanged:: 2.5 Added :class:`defaultdict`. .. versionchanged:: 2.6 - Added :func:`namedtuple`. + Added :func:`namedtuple` and added abstract base classes. -The specialized containers provided in this module provide alternatives -to Python's general purpose built-in containers, :class:`dict`, -:class:`list`, :class:`set`, and :class:`tuple`. - -Besides the containers provided here, the optional :mod:`bsddb` -module offers the ability to create in-memory or file based ordered -dictionaries with string keys using the :meth:`bsddb.btopen` method. +.. versionchanged:: 2.7 + Added :class:`Counter`. In addition to containers, the collections module provides some ABCs (abstract base classes) that can be used to test whether a class -provides a particular interface, for example, is it hashable or +provides a particular interface, for example, whether it is hashable or a mapping. -.. versionchanged:: 2.6 - Added abstract base classes. ABCs - abstract base classes ---------------------------- |