83f0f22efe
This API is available starting in 3.11. It is not part of the Stable ABI. PyType_GetModuleByDef searches the MRO of the given type for a module matching the given module spec. It can be useful for users use that `pyo3_ffi` directly and want to support multiple interpreters/per interpreter GIL. It is useful to obtain access to the module state from special methods like `tp_new` that can't use the METH_METHOD calling convention. This API is not supported on PyPy yet, but guess the symbol name for the future.
58 B
58 B
Add definition for PyType_GetModuleByDef
to pyo3_ffi
.