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)))
This test looks missing in CPython
python/cpython#93815
Ok, they are not interested in it. We will add it to extra_tests/snippets/stdlib_itertools.py.
In #3788 I added a similar test.
Activity
youknowone commented on Jun 14, 2022
This test looks missing in CPython
python/cpython#93815
youknowone commented on Jun 14, 2022
Ok, they are not interested in it. We will add it to extra_tests/snippets/stdlib_itertools.py.
rng-dynamics commented on Jun 14, 2022
In #3788 I added a similar test.