2to3: Apply itertools fixer. #3236

Merged
merged 1 commit into from Apr 13, 2013

Projects

None yet

2 participants

@charris
Member
charris commented Apr 13, 2013

In Python 3 zip, map, and filter are all iterators, consequently the
itertools variants izip, imap, and ifilter have been removed and the
itertools fixer replaces them with the unprefixed names.

Because the places where the iterator variants are used in current look
like places where the iterator version might be useful, the approach
taken here is to define the prefixed versions to the unprefixed versions
for Python 3, but otherwise import them from itertools.

Closes #3233.

@charris charris 2to3: Apply itertools fixer.
In Python 3 zip, map, and filter are all iterators, consequently the
itertools variants izip, imap, and ifilter have been removed and the
itertools fixer replaces them with the unprefixed names.

Because the places where the iterator variants are used in current look
like places where the iterator version might be useful, the approach
taken here is to define the prefixed versions to the unprefixed versions
for Python 3, but otherwise import them from itertools.

Closes #3233.
5de56ef
@njsmith njsmith merged commit 74b08b3 into numpy:master Apr 13, 2013

1 check passed

default The Travis build passed
Details
@charris charris deleted the charris:2to3-apply-itertools branch Apr 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment