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 classes with __dict__ on 3.12 #15471

Merged
merged 1 commit into from
Jun 23, 2023
Merged

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Jun 19, 2023

Got this working with a little trial and error.

Work on mypyc/mypyc#995.

Got this working with a little trial and error.

Work on mypyc/mypyc#995.
@JukkaL JukkaL merged commit c2dc3ff into master Jun 23, 2023
@JukkaL JukkaL deleted the mypyc-3.12-dunder-dict branch June 23, 2023 17:20
JukkaL added a commit that referenced this pull request 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.
JukkaL added a commit that referenced this pull request 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.
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.

2 participants