mirror of
https://github.com/python/cpython.git
synced 2025-09-10 18:58:35 +00:00
Deleted two duplicated paragraphs in the intro. Added mention of
UserDict and UserList and mixins in the intro. Fixed a typo.
This commit is contained in:
parent
53349a005c
commit
71316b0378
1 changed files with 7 additions and 13 deletions
|
@ -10,16 +10,10 @@
|
||||||
|
|
||||||
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 two datatypes, :class:`deque` and :class:`defaultdict`, and
|
||||||
one datatype factory function, :func:`namedtuple`.
|
one datatype factory function, :func:`namedtuple`. This module also
|
||||||
|
provides the :class:`UserDict` and :class:`UserList` classes which may
|
||||||
Besides the containers provided here, the optional :mod:`bsddb`
|
be useful when inheriting directly from :class:`dict` or
|
||||||
module offers the ability to create in-memory or file based ordered
|
:class:`list` isn't convenient.
|
||||||
dictionaries with string keys using the :meth:`bsddb.btopen` method.
|
|
||||||
|
|
||||||
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
|
|
||||||
a mapping.
|
|
||||||
|
|
||||||
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`,
|
||||||
|
@ -29,9 +23,9 @@ module offers the ability to create in-memory or file based ordered
|
||||||
dictionaries with string keys using the :meth:`bsddb.btopen` method.
|
dictionaries with string keys using the :meth:`bsddb.btopen` method.
|
||||||
|
|
||||||
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). These can be used to test whether a class
|
||||||
provides a particular interface, for example, is it hashable or
|
provides a particular interface, for example, is it hashable or
|
||||||
a mapping.
|
a mapping, and some of them can also be used as mixin classes.
|
||||||
|
|
||||||
ABCs - abstract base classes
|
ABCs - abstract base classes
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue