Commit c920daf
committed
updater: workaround CPython bug 128211
Python 3.13 list comprehensions are buggy [1]: [i for i in x] calls
iter(iter(x)) instead of just iter(x). Work around the bug by having
UpdateListIter have a __iter__(self) that just returns self. This is
the same thing that the standard library does:
x = iter([])
print(x is iter(x))
prints True.
[1]: python/cpython#1282111 parent a3e4d17 commit c920daf
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
| |||
0 commit comments