Skip to content

Merge _PyStackRef definitions for Py_GIL_DISABLED and default builds #142472

@colesbury

Description

@colesbury

The default build now uses _PyStackRef in a similar way to the free threaded build:

The implementations of most stackref functions are similar or identical, so let's combine them when it simplifies things. I think this will also make it less likely that we fix a bug in one build and miss it in the other, like happened in:

I'll put up a PR soon.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-refactorCode refactoring (with no changes in behavior)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions