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 serhiy.storchaka
Recipients Wilberto, r.david.murray, serhiy.storchaka
Date 2013-09-06.22:14:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378505686.07.0.409311897842.issue18949@psf.upfronthosting.co.za>
In-reply-to
Content
> I'm not even sure when this else statement is executed.

It executed when no breaks were happen. I.e. both variants of code are equivalent besides the fact that variant with "else" doesn't require named boolean variable. It is a feature of Python syntax.
History
Date User Action Args
2013-09-06 22:14:46serhiy.storchakasetrecipients: + serhiy.storchaka, r.david.murray, Wilberto
2013-09-06 22:14:46serhiy.storchakasetmessageid: <1378505686.07.0.409311897842.issue18949@psf.upfronthosting.co.za>
2013-09-06 22:14:46serhiy.storchakalinkissue18949 messages
2013-09-06 22:14:45serhiy.storchakacreate