| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
There was a problem hiding this comment.
Please, don't forget a NEWS entry.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
Can we land this PR to main ? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Fix the compiler-generated __annotate__ guard by emitting TO_BOOL after COMPARE_OP, allowing the optimizer to generate the bool-converting COMPARE_OP before POP_JUMP_IF_FALSE.
Previously, the generated bytecode omitted the bool conversion required before POP_JUMP_IF_FALSE, allowing a non-boolean result from __gt__ to reach the jump. On debug builds this triggered an assertion failure, while release builds could exhibit incorrect behavior.
Changes
Issue
Fixes gh-153354.
Testing