summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-02-02 05:19:22 (GMT)
committerRaymond Hettinger <python@rcn.com>2016-02-02 05:19:22 (GMT)
commitb00da57561505eb220a107fab0e7fbc322f767ac (patch)
treed781959a29d40965a7cc0aaf4c3a5c8cc03b0411 /Doc/library
parent3e7230904e475982d0aea2c0181ea9e04e0ac6b3 (diff)
downloadcpython-b00da57561505eb220a107fab0e7fbc322f767ac.zip
cpython-b00da57561505eb220a107fab0e7fbc322f767ac.tar.gz
cpython-b00da57561505eb220a107fab0e7fbc322f767ac.tar.bz2
Issue #26194: Inserting into a full deque to raise an IndexError
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/collections.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index e89da35..092221f 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -477,8 +477,8 @@ or subtracting from an empty counter.
Insert *x* into the deque at position *i*.
- If the insertion causes a bounded deque to grow beyond *maxlen*, the
- rightmost element is then removed to restore the size limit.
+ If the insertion would cause a bounded deque to grow beyond *maxlen*,
+ an :exc:`IndexError` is raised.
.. versionadded:: 3.5