[issue1875] "if 0: return" not raising SyntaxError

Armin Rigo report at bugs.python.org
Mon Feb 2 18:11:59 CET 2009


Armin Rigo <arigo at users.sourceforge.net> added the comment:

...which does not really solve anything, as "if 0: yield" at
module-level is now just ignored instead of raising a SyntaxError (e.g.
like "if False: yield").

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1875>
_______________________________________


More information about the Python-bugs-list mailing list