◐ Shell
clean mode source ↗

gh-103092: Isolate ctypes by aisk · Pull Request #103612 · python/cpython

I was trying to enable multi-phase initialization and per-interpreter state, as well as convert some types to heap types in this PR. However, I found that the API to find a module state by type PyType_GetModuleByDef requires the parent type (or children? I forgot) to be converted first.

This made it much harder to finish, so I copied some code from this PR to #113620. Therefore, this should be closed now.