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 <[email protected]>
<http://bugs.python.org/issue23793>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com