Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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#128211
- Loading branch information