You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2022-02-02.16:55:22.816>labels= ['expert-C-API', '3.11']
title='Add PyType_GetModuleByDef to the public & limited API'updated_at=<Date2022-02-11.16:23:15.131>user='https://github.com/encukou'
_PyType_GetModuleByDef (added in bpo-42100)allows module state access
from slot methods (like tp_init or nb_add),
the main thing missing from PEP-573 (Module State Access from C
Extension Methods).
It's time to make it public.
The function itself can be implemented using only limited API, though
it's a bit tricky to do so correctly (and our implementation uses
private speedups), so it's better if extension authors can use it as a
pre-made building block.
…n#31081)
* Make PyType_GetModuleByDef public (remove underscore)
Co-authored-by: Victor Stinner <vstinner@python.org>
GitHub-Issue-Link: python/cpython#90771
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: