summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-03-18 21:20:23 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-03-18 21:20:23 (GMT)
commit4aec61e0fc29217c93acd0615ad54bd081a64658 (patch)
tree3fb574eb0ca43704ad5e6a3f21e8f556a1a0b194 /Doc
parent5011c3f7fcda2c6ee7cc970e61e363a4ec1f092e (diff)
downloadcpython-4aec61e0fc29217c93acd0615ad54bd081a64658.zip
cpython-4aec61e0fc29217c93acd0615ad54bd081a64658.tar.gz
cpython-4aec61e0fc29217c93acd0615ad54bd081a64658.tar.bz2
Add a remove() method to collections.deque objects.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libcollections.tex6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/lib/libcollections.tex b/Doc/lib/libcollections.tex
index 84cc507..51603aa 100644
--- a/Doc/lib/libcollections.tex
+++ b/Doc/lib/libcollections.tex
@@ -64,6 +64,12 @@ Deque objects support the following methods:
If no elements are present, raises a \exception{IndexError}.
\end{methoddesc}
+\begin{methoddesc}{remove}{value}
+ Removed the first occurrence of \var{value}. If not found,
+ raises a \exception{ValueError}.
+ \versionadded{2.5}
+\end{methoddesc}
+
\begin{methoddesc}{rotate}{n}
Rotate the deque \var{n} steps to the right. If \var{n} is
negative, rotate to the left. Rotating one step to the right