mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue 23793: Add deque support for __add__(), __mul__(), and __imul__().
This commit is contained in:
parent
b6c15bcad3
commit
41290a68ba
4 changed files with 204 additions and 10 deletions
|
@ -526,6 +526,9 @@ the :keyword:`in` operator, and subscript references such as ``d[-1]``. Indexed
|
|||
access is O(1) at both ends but slows to O(n) in the middle. For fast random
|
||||
access, use lists instead.
|
||||
|
||||
Starting in version 3.5, deques support ``__add__()``, ``__mul__()``,
|
||||
and ``__imul__()``.
|
||||
|
||||
Example:
|
||||
|
||||
.. doctest::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue