[issue1604] collections.deque.__init__ doesn't initialize

Neil Cerutti report at bugs.python.org
Wed Dec 12 18:20:44 CET 2007


New submission from Neil Cerutti:

Passing an interable to the __init__ method of an existing deque 
appends those elements, rather than reinitializing the deque with the 
items. This is contrary to how list.__init__ works.

test_deque.py verifies the (possibly) incorrect behavior.

----------
components: Library (Lib)
messages: 58501
nosy: Horpner, rhettinger
severity: normal
status: open
title: collections.deque.__init__ doesn't initialize
type: behavior
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1604>
__________________________________


More information about the Python-bugs-list mailing list