summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-12-10 06:42:54 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-12-10 06:42:54 (GMT)
commita5fd24e97d18f96740c8ad02ea824ca6bb410cba (patch)
tree65639a13557ae8c7f42ed225a4b1facf181d6dcd /Doc
parent0b3263b073245e29b83fd8795c085ac96205dee0 (diff)
downloadcpython-a5fd24e97d18f96740c8ad02ea824ca6bb410cba.zip
cpython-a5fd24e97d18f96740c8ad02ea824ca6bb410cba.tar.gz
cpython-a5fd24e97d18f96740c8ad02ea824ca6bb410cba.tar.bz2
Add a reverse() method to collections.deque().
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/collections.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index dc81c0a..db9babf 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -379,6 +379,11 @@ counts, but the output will exclude results with counts of zero or less.
.. versionadded:: 2.5
+ .. method:: reverse()
+
+ Reverse the elements of the deque in-place and then return ``None``.
+
+ .. versionadded:: 2.7
.. method:: rotate(n)