Skip to content

[mypyc] Fix classes with __dict__ on 3.12 - #15471

Merged
JukkaL merged 1 commit into
masterfrom
mypyc-3.12-dunder-dict
Jun 23, 2023
Merged

JukkaL merged 1 commit into
masterfrom
mypyc-3.12-dunder-dict

Conversation

@JukkaL

@JukkaL JukkaL commented Jun 19, 2023

Copy link
Copy Markdown
Collaborator

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

2 participants