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

ffi: Add definition for PyType_GetModuleByDef #3734

Merged
merged 1 commit into from
Jan 13, 2024

Commits on Jan 13, 2024

  1. ffi: Add definition for PyType_GetModuleByDef

    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.
    jadedpasta committed Jan 13, 2024
    Configuration menu
    Copy the full SHA
    83f0f22 View commit details
    Browse the repository at this point in the history