Static PyModuleDef Objects Should be Immortal #101755
Labels
3.12
only security fixes
extension-modules
C modules in the Modules dir
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
performance
Performance or resource usage
topic-C-API
type-feature
A feature request or enhancement
We'd likely do this via
PyModuleDef_HEAD_INIT
, either directly or indirectly. The indirection might be necessary asPyModuleDef_HEAD_INIT
is part of the public C-API, but_PyObject_IMMORTAL_REFCNT
is not.CC @eduardo-elizondo
The text was updated successfully, but these errors were encountered: