Skip to content

[mypyc] Fix 3.12 issue with pickling of instances with __dict__#15574

Merged
JukkaL merged 1 commit intomasterfrom
pickle-class-with-dict
Jul 3, 2023
Merged

[mypyc] Fix 3.12 issue with pickling of instances with __dict__#15574
JukkaL merged 1 commit intomasterfrom
pickle-class-with-dict

Conversation

@JukkaL
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL commented Jul 3, 2023

This fixes the testPickling test case in mypyc/test-data/run-classes.test on Python 3.12.

Handle another case that was missed in #15471. On 3.12 we rely on Py_TPFLAGS_MANAGED_DICT and shouldn't define an explicit __dict__ member.

Work on mypyc/mypyc#995.

This fixes the testPickling test case in mypyc/test-data/run-classes.test
on Python 3.12.

Handle another case that was missed in #15471. On 3.12 we rely on
Py_TPFLAGS_MANAGED_DICT and shouldn't define an explicit `__dict__`
member.

Work on mypyc/mypyc#995.
@JukkaL JukkaL merged commit 4df2215 into master Jul 3, 2023
@JukkaL JukkaL deleted the pickle-class-with-dict branch July 3, 2023 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant