[Numpy-svn] [numpy/numpy] 5de56e: 2to3: Apply itertools fixer.
GitHub
noreply at github.com
Sat Apr 13 04:12:06 EDT 2013
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: 5de56efaad908f2b731a7eda2b9ca2a9196f820a
https://github.com/numpy/numpy/commit/5de56efaad908f2b731a7eda2b9ca2a9196f820a
Author: Charles Harris <charlesr.harris at gmail.com>
Date: 2013-04-12 (Fri, 12 Apr 2013)
Changed paths:
M numpy/lib/npyio.py
M numpy/lib/recfunctions.py
M tools/py3tool.py
Log Message:
-----------
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.
Commit: 74b08b3f0284d9d2dd55a15dd98a3846913b1b51
https://github.com/numpy/numpy/commit/74b08b3f0284d9d2dd55a15dd98a3846913b1b51
Author: njsmith <njs at pobox.com>
Date: 2013-04-13 (Sat, 13 Apr 2013)
Changed paths:
M numpy/lib/npyio.py
M numpy/lib/recfunctions.py
M tools/py3tool.py
Log Message:
-----------
Merge pull request #3236 from charris/2to3-apply-itertools
2to3: Apply itertools fixer.
Compare: https://github.com/numpy/numpy/compare/06066cb01962...74b08b3f0284
More information about the Numpy-svn
mailing list