This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author veky
Recipients catrudis, eric.smith, terry.reedy, veky
Date 2020-07-19.05:27:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595136422.2.0.752472542091.issue41272@roundup.psfhosted.org>
In-reply-to
Content
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. :-)
History
Date User Action Args
2020-07-19 05:27:02vekysetrecipients: + veky, terry.reedy, eric.smith, catrudis
2020-07-19 05:27:02vekysetmessageid: <1595136422.2.0.752472542091.issue41272@roundup.psfhosted.org>
2020-07-19 05:27:02vekylinkissue41272 messages
2020-07-19 05:27:01vekycreate