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 Jim.Jewett
Recipients DarrenDanielDay, Jim.Jewett, steven.daprano
Date 2020-07-27.23:44:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595893475.8.0.353154265218.issue41407@roundup.psfhosted.org>
In-reply-to
Content
Why would you raise StopIteration if you didn't want to stop the nearest iteration loop?  I agree that the result of your sample code seems strange, but that is because it is strange code.

I agree with Steven D'Aprano that changing it would cause more pain than it would remove.

Unless it gets a lot more support by the first week of August, I recommend closing this request as rejected.
History
Date User Action Args
2020-07-27 23:44:35Jim.Jewettsetrecipients: + Jim.Jewett, steven.daprano, DarrenDanielDay
2020-07-27 23:44:35Jim.Jewettsetmessageid: <1595893475.8.0.353154265218.issue41407@roundup.psfhosted.org>
2020-07-27 23:44:35Jim.Jewettlinkissue41407 messages
2020-07-27 23:44:35Jim.Jewettcreate