Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collections.deque.__init__ doesn't initialize #45945

Closed
Horpner mannequin opened this issue Dec 12, 2007 · 3 comments
Closed

collections.deque.__init__ doesn't initialize #45945

Horpner mannequin opened this issue Dec 12, 2007 · 3 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@Horpner
Copy link
Mannequin

Horpner mannequin commented Dec 12, 2007

BPO 1604
Nosy @gvanrossum, @rhettinger

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/rhettinger'
closed_at = <Date 2007-12-13.05:21:31.625>
created_at = <Date 2007-12-12.17:20:43.886>
labels = ['type-bug', 'library']
title = "collections.deque.__init__ doesn't initialize"
updated_at = <Date 2007-12-13.05:21:31.582>
user = 'https://bugs.python.org/Horpner'

bugs.python.org fields:

activity = <Date 2007-12-13.05:21:31.582>
actor = 'rhettinger'
assignee = 'rhettinger'
closed = True
closed_date = <Date 2007-12-13.05:21:31.625>
closer = 'rhettinger'
components = ['Library (Lib)']
creation = <Date 2007-12-12.17:20:43.886>
creator = 'Horpner'
dependencies = []
files = []
hgrepos = []
issue_num = 1604
keywords = []
message_count = 3.0
messages = ['58501', '58502', '58522']
nosy_count = 3.0
nosy_names = ['gvanrossum', 'rhettinger', 'Horpner']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue1604'
versions = ['Python 2.6']

@Horpner
Copy link
Mannequin Author

Horpner mannequin commented Dec 12, 2007

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.

@Horpner Horpner mannequin added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Dec 12, 2007
@gvanrossum
Copy link
Member

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.

@rhettinger
Copy link
Contributor

Checked in. See rev 59478.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants