-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-89683: add tests for deepcopy
on frozen dataclasses
#123098
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
gh-89683: add tests for deepcopy
on frozen dataclasses
#123098
Conversation
deepcopy
on frozen dataclassesdeepcopy
on frozen dataclasses
Thanks @picnixz for the PR, and @ericvsmith for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Thanks @picnixz for the PR, and @ericvsmith for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, @picnixz and @ericvsmith, I could not cleanly backport this to
|
Sorry, @picnixz and @ericvsmith, I could not cleanly backport this to
|
…ngh-123098) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> (cherry picked from commit 5e7eba0)
Erf, backports failed. I'll take care of them now. |
@picnixz : Thanks! |
…ngh-123098) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
GH-124678 is a backport of this pull request to the 3.13 branch. |
…ngh-123098) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com> # Conflicts: # Lib/test/test_dataclasses/__init__.py
…ngh-123098) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
GH-124679 is a backport of this pull request to the 3.12 branch. |
Backports are ready (I really hate making backports manually because |
You're better than me: I tried using |
Note that I did not change the existing behaviour. Should we, in the case the user defines their own slot, automatically add
__{get,set}state__
methods if they are not provided?