Vedran Čačić <ved...@gmail.com> added the comment: I completely agree that we should reject this, but you commit a very frequent mistake in programming try-expressions. The problem is, if the first option contains a NameError, second option will be executed.
It should be: try: i001 except NameError: <loop never executed> else: <loop executed at least once> And similarly for break001. You see, dependent `else` is needed sometimes. But of course Guido already covered this. :-) ---------- nosy: +veky _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41272> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com