[issue37500] 3.8.0b2 no longer optimizes away "if 0:" ?
Tim Peters
report at bugs.python.org
Fri Jul 5 17:32:39 EDT 2019
Tim Peters <tim at python.org> added the comment:
There's "correctness" that matters and "correctness" that's merely pedantic ;-) CPython has acted the current way for about 15 years (since 2.4 was released), and this is the first time anyone has raised an objection. That's just not enough harm to justify tossing out well over a decade of "facts on the ground". Practicality beats purity.
I, of course, have no objection to detecting syntax errors in dead code. It's the disruptive _way_ that's being done that's objectionable. I don't have a better way in mind, nor the bandwidth to try to dream one up. But, at heart, I'd rather it never "get fixed" than get fixed at this cost.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37500>
_______________________________________
More information about the Python-bugs-list
mailing list