Issue 23793: Add deque support for __add__(), __mul__(), and __imul__().

This commit is contained in:
Raymond Hettinger 2015-03-31 08:12:23 -07:00
parent b6c15bcad3
commit 41290a68ba
4 changed files with 204 additions and 10 deletions

View file

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