Skip to content
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

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

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

JukkaL
Copy link
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
12 checks passed
@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