cpython icon indicating copy to clipboard operation
cpython copied to clipboard

gh-134584: Eliminate redundant refcounting in TO_BOOL_ALWAYS_TRUE

Open reidenong opened this issue 1 week ago • 3 comments

  • Refactor _REPLACE_WITH_TRUE to leave input on TOS, TO_BOOL_ALWAYS_TRUE to use explicit POP_TOP
  • Refactor optimized _REPLACE_WITH_TRUE op to ensure correct stack effects
  • Add unit tests
  • Issue: gh-134584

reidenong avatar Jan 05 '26 05:01 reidenong

All commit authors signed the Contributor License Agreement.

CLA signed

python-cla-bot[bot] avatar Jan 05 '26 05:01 python-cla-bot[bot]

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

bedevere-app[bot] avatar Jan 05 '26 05:01 bedevere-app[bot]

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

bedevere-app[bot] avatar Jan 05 '26 05:01 bedevere-app[bot]