Guido van Rossum <gu...@python.org> added the comment:

Sure seems to me as if we need to have a separate pass that looks for 
out-of-place `return`, `yield`, `break` and `continue`, run before the 
optimization removes `if 0:` blocks etc.

----------
nosy: +gvanrossum

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

Reply via email to