[issue1875] "if 0: return" not raising SyntaxError
Pablo Galindo Salgado
report at bugs.python.org
Tue May 14 19:27:14 EDT 2019
Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:
The issue is not fixed. The problem is that this still allows invalid syntax because the code is optimized away:
def f():
if 0:
break
print("Hello")
f()
----------
nosy: +pablogsal
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue1875>
_______________________________________
More information about the Python-bugs-list
mailing list