[issue1875] "if 0: return" not raising SyntaxError
Serhiy Storchaka
report at bugs.python.org
Sat Jun 15 11:19:58 EDT 2019
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
The issue is not fixed yet. The compiler now rejects
if 0:
return
but it still accepts
if 1:
pass
else:
return
while 0:
return
----------
resolution: fixed ->
stage: resolved ->
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue1875>
_______________________________________
More information about the Python-bugs-list
mailing list