[issue37500] 3.8.0b2 no longer optimizes away "if 0:" ?

Pablo Galindo Salgado report at bugs.python.org
Fri Jul 5 17:13:24 EDT 2019


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

CPython being the reference implementation of Python, people could interpret that this optimization is part of the language and its behavior should be mirror in every other implementation. That's why under my understanding, correctness should always be prioritized.

Tim, do you have any other way that can remove the bytecode but reporting SyntaxErrors for these blocks?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37500>
_______________________________________


More information about the Python-bugs-list mailing list