-
-
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 <[email protected]> (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 <[email protected]> Co-authored-by: Eric V. Smith <[email protected]>
GH-124678 is a backport of this pull request to the 3.13 branch. |
…ngh-123098) Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Eric V. Smith <[email protected]> # Conflicts: # Lib/test/test_dataclasses/__init__.py
…ngh-123098) Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Eric V. Smith <[email protected]>
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 |
…23098) (gh-124679) gh-89683: add tests for `deepcopy` on frozen dataclasses (gh-123098) Co-authored-by: Eric V. Smith <[email protected]>
…23098) (#124678) * gh-89683: add tests for `deepcopy` on frozen dataclasses (gh-123098) Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Eric V. Smith <[email protected]>
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?