8000 Static PyModuleDef Objects Should be Immortal · Issue #101755 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Static PyModuleDef Objects Should be Immortal #101755

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

Open
ericsnowcurrently opened this issue Feb 9, 2023 · 0 comments
Open

Static PyModuleDef Objects Should be Immortal #101755

ericsnowcurrently opened this issue Feb 9, 2023 · 0 comments
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

Comments

@ericsnowcurrently
Copy link
Member

We'd likely do this via PyModuleDef_HEAD_INIT, either directly or indirectly. The indirection might be necessary as PyModuleDef_HEAD_INIT is part of the public C-API, but _PyObject_IMMORTAL_REFCNT is not.

CC @eduardo-elizondo

@ericsnowcurrently ericsnowcurrently added type-feature A feature request or enhancement performance Performance or resource usage interpreter-core (Objects, Python, Grammar, and Parser dirs) extension-modules C modules in the Modules dir topic-C-API 3.12 only security fixes labels Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
36EA
Development

No branches or pull requests

1 participant
0