Skip to content

Make PyCodeObject._co_unique_id conditional on Py_GIL_DISABLED #151483

@weixlu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions