Skip to content

Static PyModuleDef Objects Should be Immortal #101755

Description

@ericsnowcurrently

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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixesextension-modulesC modules in the Modules dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagetopic-C-APItype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions