KEMBAR78
[mypyc] Fix 3.12 issue with pickling of instances with __dict__ by JukkaL · Pull Request #15574 · python/mypy · GitHub
Skip to content

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
@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