Skip to content

gh-48962: Fix duplicate values in the list when deepcopying a subclass list #101466

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

furkanonder
Copy link
Contributor

@furkanonder furkanonder commented Jan 31, 2023

@furkanonder furkanonder changed the title GH-48962: Fix duplicate values in the list when copying a subclass list GH-48962: Fix duplicate values in the list when deepcopying a subclass list Jan 31, 2023
@furkanonder furkanonder added type-bug An unexpected behavior, bug, or error stdlib Python modules in the Lib dir labels Aug 6, 2023
@furkanonder furkanonder changed the title GH-48962: Fix duplicate values in the list when deepcopying a subclass list gh-48962: Fix duplicate values in the list when deepcopying a subclass list Aug 6, 2023
@serhiy-storchaka
Copy link
Member

It is not yet clear what is the correct behavior. Even if the changed order is more correct, it is a breaking change. And this PR makes the behavior for list subclasses inconsistent with the behavior of other list-like and dict-like objects. It is not an easy issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants