summaryrefslogtreecommitdiffstats
path: root/Doc/library/collections.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-01-27 05:46:03 (GMT)
committerRaymond Hettinger <python@rcn.com>2016-01-27 05:46:03 (GMT)
commit0ef0423cb2af178022991e9f3bfc276a2c3e1358 (patch)
treedce25256aa3199c9ecf63ecb5a5ba300f57a0a4c /Doc/library/collections.rst
parentbe59d1489bdf150e05e67a89cc772628af7e8fd6 (diff)
parent3743432302e9b31d4fe0db31485543a306057fc8 (diff)
downloadcpython-0ef0423cb2af178022991e9f3bfc276a2c3e1358.zip
cpython-0ef0423cb2af178022991e9f3bfc276a2c3e1358.tar.gz
cpython-0ef0423cb2af178022991e9f3bfc276a2c3e1358.tar.bz2
merge
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r--Doc/library/collections.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index d3b025d..6a0c127 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -477,6 +477,9 @@ 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.
+
.. versionadded:: 3.5