Make `PyCodeObject._co_unique_id` conditional on `Py_GIL_DISABLED` · Issue #151483 · python/cpython · GitHub
Skip to content

Make PyCodeObject._co_unique_id conditional on Py_GIL_DISABLED #151483

Description

@weixlu

Feature or enhancement

Proposal:

PyCodeObject._co_unique_id is currently declared unconditionally, but its usage is entirely in free-threaded code paths. So maybe we can make _co_unique_id only present when Py_GIL_DISABLED is enabled.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions