CPython: ``` >>> from itertools import * >>> a = chain.from_iterable(repeat(range(2))) >>> next(a) 0 >>> next(a) 1 >>> next(a) 0 ``` RustPython does not evaluate lazily and the call to `from_iterable` never returns: ``` >>>>> from itertools import * >>>>> a = chain.from_iterable(repeat(range(2))) ```
Activity
youknowone commentedon Jun 14, 2022
This test looks missing in CPython
python/cpython#93815
youknowone commentedon Jun 14, 2022
Ok, they are not interested in it. We will add it to
extra_tests/snippets/stdlib_itertools.py.rng-dynamics commentedon Jun 14, 2022
In #3788 I added a similar test.