mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix-up intro paragraph for collections docs.
This commit is contained in:
parent
f76b920942
commit
acd82b99c8
1 changed files with 4 additions and 7 deletions
|
@ -14,11 +14,8 @@
|
||||||
__name__ = '<doctest>'
|
__name__ = '<doctest>'
|
||||||
|
|
||||||
This module implements high-performance container datatypes. Currently,
|
This module implements high-performance container datatypes. Currently,
|
||||||
there are two datatypes, :class:`deque` and :class:`defaultdict`, and
|
there are three datatypes, :class:`Counter`, :class:`deque` and
|
||||||
one datatype factory function, :func:`namedtuple`. This module also
|
:class:`defaultdict`, and one datatype factory function, :func:`namedtuple`.
|
||||||
provides the :class:`UserDict` and :class:`UserList` classes which may
|
|
||||||
be useful when inheriting directly from :class:`dict` or
|
|
||||||
:class:`list` isn't convenient.
|
|
||||||
|
|
||||||
The specialized containers provided in this module provide alternatives
|
The specialized containers provided in this module provide alternatives
|
||||||
to Python's general purpose built-in containers, :class:`dict`,
|
to Python's general purpose built-in containers, :class:`dict`,
|
||||||
|
@ -26,8 +23,8 @@ to Python's general purpose built-in containers, :class:`dict`,
|
||||||
|
|
||||||
In addition to containers, the collections module provides some ABCs
|
In addition to containers, the collections module provides some ABCs
|
||||||
(abstract base classes) that can be used to test whether a class
|
(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, and some of them can also be used as mixin classes.
|
a mapping.
|
||||||
|
|
||||||
ABCs - abstract base classes
|
ABCs - abstract base classes
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue