summaryrefslogtreecommitdiffstats
path: root/Doc/library/collections.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-08-17 15:07:14 (GMT)
committerGeorg Brandl <georg@python.org>2010-08-17 15:07:14 (GMT)
commit67b21b7547feee634bbecafeb88606ff350c0d3c (patch)
treebd493e5b10f9cead75ed145def9e0098b53188ab /Doc/library/collections.rst
parent9e25701e87936ef61c348b5da6f9b580a52bab19 (diff)
downloadcpython-67b21b7547feee634bbecafeb88606ff350c0d3c.zip
cpython-67b21b7547feee634bbecafeb88606ff350c0d3c.tar.gz
cpython-67b21b7547feee634bbecafeb88606ff350c0d3c.tar.bz2
Consistency check for versionadded/changed directives.
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r--Doc/library/collections.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 66d373d..454817b 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -266,6 +266,7 @@ counts, but the output will exclude results with counts of zero or less.
.. versionadded:: 3.2
+
.. method:: extend(iterable)
Extend the right side of the deque by appending elements from the iterable
@@ -296,12 +297,14 @@ counts, but the output will exclude results with counts of zero or less.
Removed the first occurrence of *value*. If not found, raises a
:exc:`ValueError`.
+
.. method:: reverse()
Reverse the elements of the deque in-place and then return ``None``.
.. versionadded:: 3.2
+
.. method:: rotate(n)
Rotate the deque *n* steps to the right. If *n* is negative, rotate to
@@ -576,7 +579,7 @@ they add the ability to access fields by name instead of position index.
lightweight and require no more memory than regular tuples.
.. versionchanged:: 3.1
- added support for *rename*.
+ Added support for *rename*.
Example: