Skip to content

_PyType_LookupByVersion returns NULL for types with static version tags #146453

@kumaraditya303

Description

@kumaraditya303

_PyType_LookupByVersion currently returns NULL for types such as int which has a fixed type version. This prevents the JIT from optimizing method loads on int to inline borrow. Since, the types has predefined version tags, assign_version_tag is never called on them so they are never added to the cache.

See PR for more details.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions