diff options
author | Raymond Hettinger <python@rcn.com> | 2009-12-10 00:47:21 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-12-10 00:47:21 (GMT) |
commit | e5fdedbeda147f3878f82349464f28f184c01658 (patch) | |
tree | b7a53644e818a23a1207de853919654d2398b729 /Doc/library | |
parent | 3e761a98026731d24f3e54cca2f96dc2cf5fa575 (diff) | |
download | cpython-e5fdedbeda147f3878f82349464f28f184c01658.zip cpython-e5fdedbeda147f3878f82349464f28f184c01658.tar.gz cpython-e5fdedbeda147f3878f82349464f28f184c01658.tar.bz2 |
Add a reverse() method to collections.deque().
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/collections.rst | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ 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) |