[issue23793] Support __add__, __mul__, and __imul__ for deques.
Raymond Hettinger
report at bugs.python.org
Mon Mar 30 05:13:13 CEST 2015
Raymond Hettinger added the comment:
Also incorporate __mul__ and __imul__.
>>> d = deque('abc')
>>> d * 3
deque(['a', 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c'])
>>> d *= 2
>>> d
deque(['a', 'b', 'c', 'a', 'b', 'c'])
----------
keywords: +needs review -patch
title: Support __add__ for deques. -> Support __add__, __mul__, and __imul__ for deques.
Added file: http://bugs.python.org/file38734/deque_mul_and_add.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23793>
_______________________________________
More information about the Python-bugs-list
mailing list