Issue1604
Created on 2007-12-12 17:20 by Horpner, last changed 2007-12-13 05:21 by rhettinger.
|
msg58501 - (view) |
Author: Neil Cerutti (Horpner) |
Date: 2007-12-12 17:20 |
|
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.
|
|
msg58502 - (view) |
Author: Guido van Rossum (gvanrossum) |
Date: 2007-12-12 17:42 |
|
I agree, I put the list behavior in on purpose.
Should be fixed in 2.6, not 2.5 though, since it's a feature.
|
|
msg58522 - (view) |
Author: Raymond Hettinger (rhettinger) |
Date: 2007-12-13 05:21 |
|
Checked in. See rev 59478.
|
|
| Date |
User |
Action |
Args |
| 2007-12-13 05:21:31 | rhettinger | set | status: open -> closed resolution: fixed messages:
+ msg58522 |
| 2007-12-12 22:18:21 | rhettinger | set | versions:
+ Python 2.6, - Python 2.5 |
| 2007-12-12 17:42:01 | gvanrossum | set | assignee: rhettinger messages:
+ msg58502 nosy:
+ gvanrossum |
| 2007-12-12 17:20:43 | Horpner | create | |
|