cpython
cpython copied to clipboard
gh-134584: Eliminate redundant refcounting in TO_BOOL_ALWAYS_TRUE
- 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
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.
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.