[3.9] bpo-45520: Backport __getstate__, __setstate__ methods for dataclasses from 3.10 into 3.9 (GH-25786)#29147
[3.9] bpo-45520: Backport __getstate__, __setstate__ methods for dataclasses from 3.10 into 3.9 (GH-25786)#29147sobolevn wants to merge 2 commits intopython:3.9from
dataclasses from 3.10 into 3.9 (GH-25786)#29147Conversation
__getstate__, __setstate__ methods from 3.10 into 3.9|
I'll toggle this PR once again after all other tests pass, because Azure seems to be broken for some unrelated reason. |
|
It now passes! I've also created https://bugs.python.org/issue45566 to sync the |
Refs #29147 Automerge-Triggered-By: GH:ericvsmith
…GH-29150) Refs python#29147 Automerge-Triggered-By: GH:ericvsmith (cherry picked from commit 07236d5) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
Friendly ping @ericvsmith 🙂 |
|
This PR is stale because it has been open for 30 days with no activity. |
|
Please mention dataclasses in the PR title |
dataclasses from 3.10 into 3.9 (GH-25786)
|
@sobolevn sorry for the really long delay (I dropped the ball on this notification for a month). Unfortunately I have to admit I'm clueless at pickle so I can't review this. |
|
@Fidget-Spinner no worries, thanks for your work! This is a backport of a bugfix from CC @JelleZijlstra as the original reviewer 🙂 |
|
Since dataclasses only gained native slot support in 3.10, it doesn't seem important to apply this fix to 3.9. (It affects people who set I'll leave the decision to @ericvsmith though. |
MaxwellDupre
left a comment
There was a problem hiding this comment.
Ran 175 tests in 1.202s
OK
Looks reasonable.
|
We're releasing the last bugfix release of 3.9 today and this PR's been stale for a while. Sadly it's a wontfix now. |
Refs 823fbf4
https://bugs.python.org/issue45520