2to3: Apply zip fixer. #3244

Merged
merged 1 commit into from Apr 14, 2013

Projects

None yet

1 participant

@charris
Member
charris commented Apr 13, 2013

In Python 3 zip returns an iterator instead of a list. Consequently, in
places where an iterator won't do it must be enclosed in list(...).
Lists instead of iterators are also used in array constructors as using
iterators there usually results in an object array containing an
iterator object.

Closes #3094

@charris charris 2to3: Apply zip fixer.
In Python 3 zip returns an iterator instead of a list. Consequently, in
places where an iterator won't do it must be enclosed in list(...).
Lists instead of iterators are also used in array constructors as using
iterators there usually results in an object array containing an
iterator object.

Closes #3094
0dfe67a
@charris
Member
charris commented Apr 14, 2013

Still looks good in the morning. The substitutions are those done by 2to3, so are conservative with no additional refactoring. Should be safe.

@charris charris merged commit 3f2c789 into numpy:master Apr 14, 2013

1 check passed

default The Travis build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment