Nick Coghlan added the comment:

I don't think we want to mess with the control flow, as that would be even 
weirder and may interact strangely with else and finally clauses.

A SyntaxWarning would be unconditional (so it doesn't matter whether or not the 
exception is triggered at run time), happens at compile time (so developers 
will see it), but won't be triggered when loading from a cached bytecode file 
(so end users typically won't see it).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17792>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to