-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-37289: Remove 'if False' handling in the peephole optimizer #14099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if PyObject_IsTrue()
returns -1
?
@serhiy-storchaka It goes to the break and skips to the next bytecode, right? I am missing something? |
It should be handled as an error. |
@serhiy-storchaka Done in 455cbc7 |
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
I'm having trouble backporting to |
GH-14111 is a backport of this pull request to the 3.7 branch. |
…onGH-14099) (cherry picked from commit 7a68f8c) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
GH-14112 is a backport of this pull request to the 3.8 branch. |
https://bugs.python.org/issue37289