Skip to content

gh-142472: Clean-up _PyStackRef functions - #142479

Merged
colesbury merged 5 commits into
python:mainfrom
colesbury:gh-142472-stackrefs
Dec 15, 2025
Merged

colesbury merged 5 commits into
python:mainfrom
colesbury:gh-142472-stackrefs

Conversation

@colesbury

@colesbury colesbury commented Dec 9, 2025 •

Copy link
Copy Markdown
Contributor

This combines most _PyStackRef functions and macros between the free threaded and default builds.

  • Remove Py_TAG_DEFERRED (same as Py_TAG_REFCNT)
  • Remove PyStackRef_IsDeferred (same as !PyStackRef_RefcountOnObject)
This combines most _PyStackRef functions and macros between the free
threaded and default builds.

- Remove Py_TAG_DEFERRED (same as Py_TAG_REFCNT)
- Remove PyStackRef_IsDeferred (same as !PyStackRef_RefcountOnObject)
@Fidget-Spinner

Copy link
Copy Markdown
Member

So I haven't taken a deep look yet, but I just want to say thanks so much for cleaning this up. It's much more maintainable now!

@colesbury
colesbury merged commit a882ae1 into python:main Dec 15, 2025
@colesbury
colesbury deleted the gh-142472-stackrefs branch December 15, 2025 17:03
fatelei pushed a commit to fatelei/cpython that referenced this pull request Dec 16, 2025
This combines most _PyStackRef functions and macros between the free
threaded and default builds.

- Remove Py_TAG_DEFERRED (same as Py_TAG_REFCNT)
- Remove PyStackRef_IsDeferred (same as !PyStackRef_RefcountOnObject)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants