commit | e5fdedbeda147f3878f82349464f28f184c01658 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Dec 10 00:47:21 2009 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Thu Dec 10 00:47:21 2009 +0000 |
tree | b7a53644e818a23a1207de853919654d2398b729 | |
parent | 3e761a98026731d24f3e54cca2f96dc2cf5fa575 [diff] |
Add a reverse() method to collections.deque().
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 7770b89..2ee2949 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst
@@ -357,6 +357,11 @@ 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)