summaryrefslogtreecommitdiffstats
path: root/Doc/library/collections.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r--Doc/library/collections.rst16
1 files changed, 0 insertions, 16 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 613973c..7a850b6 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -8,8 +8,6 @@
.. sectionauthor:: Raymond Hettinger <python@rcn.com>
-.. versionadded:: 2.4
-
This module implements high-performance container datatypes. Currently,
there are two datatypes, :class:`deque` and :class:`defaultdict`, and
one datatype factory function, :func:`NamedTuple`. Python already
@@ -21,12 +19,6 @@ or file based ordered dictionaries with string keys.
Future editions of the standard library may include balanced trees and
ordered dictionaries.
-.. versionchanged:: 2.5
- Added :class:`defaultdict`.
-
-.. versionchanged:: 2.6
- Added :class:`NamedTuple`.
-
.. _deque-objects:
@@ -49,11 +41,9 @@ ordered dictionaries.
``pop(0)`` and ``insert(0, v)`` operations which change both the size and
position of the underlying data representation.
- .. versionadded:: 2.4
Deque objects support the following methods:
-
.. method:: deque.append(x)
Add *x* to the right side of the deque.
@@ -99,8 +89,6 @@ Deque objects support the following methods:
Removed the first occurrence of *value*. If not found, raises a
:exc:`ValueError`.
- .. versionadded:: 2.5
-
.. method:: deque.rotate(n)
@@ -256,12 +244,10 @@ two adjacent nodes into one by grouping them in a list::
as if they were passed to the :class:`dict` constructor, including keyword
arguments.
- .. versionadded:: 2.5
:class:`defaultdict` objects support the following method in addition to the
standard :class:`dict` operations:
-
.. method:: defaultdict.__missing__(key)
If the :attr:`default_factory` attribute is ``None``, this raises an
@@ -372,8 +358,6 @@ Setting the :attr:`default_factory` to :class:`set` makes the
helpful docstring (with typename and fieldnames) and a helpful :meth:`__repr__`
method which lists the tuple contents in a ``name=value`` format.
- .. versionadded:: 2.6
-
The *fieldnames* are specified in a single string and are separated by spaces.
Any valid Python identifier may be used for a field name.