Message398268
> 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. |
|
Date |
User |
Action |
Args |
2021-07-26 23:02:59 | brandtbucher | set | recipients:
+ brandtbucher, gvanrossum, steven.daprano, Mark.Shannon, quentel, pablogsal |
2021-07-26 23:02:59 | brandtbucher | set | messageid: <1627340579.59.0.740028411346.issue44741@roundup.psfhosted.org> |
2021-07-26 23:02:59 | brandtbucher | link | issue44741 messages |
2021-07-26 23:02:59 | brandtbucher | create | |
|