diff options
| author | Raymond Hettinger <python@rcn.com> | 2005-03-18 21:20:23 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2005-03-18 21:20:23 +0000 |
| commit | 4aec61e0fc29217c93acd0615ad54bd081a64658 (patch) | |
| tree | 3fb574eb0ca43704ad5e6a3f21e8f556a1a0b194 /Doc/lib/libcollections.tex | |
| parent | 5011c3f7fcda2c6ee7cc970e61e363a4ec1f092e (diff) | |
| download | cpython-git-4aec61e0fc29217c93acd0615ad54bd081a64658.tar.gz | |
Add a remove() method to collections.deque objects.
Diffstat (limited to 'Doc/lib/libcollections.tex')
| -rw-r--r-- | Doc/lib/libcollections.tex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/lib/libcollections.tex b/Doc/lib/libcollections.tex index 84cc507cb8..51603aa233 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 |
