itertools.islice of sequenceiterator gives wrong answer

Issue #2643 resolved
Evan Hubinger
created an issue

The code

import itertools
tuple(itertools.islice(iter((0, 1, 2, 3, 4)), None, None, 2))

gives (1, 3) when it should give (0, 2, 4) on PyPy3.

Comments (2)

  1. Log in to comment