[issue42899] Is it legal to eliminate tests of a value, when that test has no effect on control flow?
Ethan Furman
report at bugs.python.org
Wed Apr 7 13:00:00 EDT 2021
Ethan Furman <ethan at stoneleaf.us> added the comment:
Mark, it looks like the consensus is your proposal:
"The implementation is allowed to skip any boolean test of a value, when it has *no* effect on the flow of the program and *at least one test* has already been performed on that value."
Has the implementation been updated to reflect this? The beta freeze will be here soon.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42899>
_______________________________________
More information about the Python-bugs-list
mailing list