This commit is contained in:
Raymond Hettinger 2016-02-01 21:21:19 -08:00
parent 94c3089818
commit a63897164e
3 changed files with 16 additions and 18 deletions

View file

@ -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