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 brandtbucher
Recipients Mark.Shannon, brandtbucher, gvanrossum, pablogsal, quentel, steven.daprano
Date 2021-07-26.23:02:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627340579.59.0.740028411346.issue44741@roundup.psfhosted.org>
In-reply-to
Content
> All the examples that are said to go into an infinite loop work fine in 3.9. [...] At the very least, the examples shouldn't swallow the IndexError and go into an infinite loop.

Note that the original example posted did not include a "raise IndexError" branch in its __getitem__. That was class I was referring to, since the lack of an IndexError causes the iteration to continue forever.

As far as I know, nothing has changed about the iteration protocol in 3.10.
History
Date User Action Args
2021-07-26 23:02:59brandtbuchersetrecipients: + brandtbucher, gvanrossum, steven.daprano, Mark.Shannon, quentel, pablogsal
2021-07-26 23:02:59brandtbuchersetmessageid: <1627340579.59.0.740028411346.issue44741@roundup.psfhosted.org>
2021-07-26 23:02:59brandtbucherlinkissue44741 messages
2021-07-26 23:02:59brandtbuchercreate