[Numpy-svn] [numpy/numpy] cff9cc: BUG: Workaround for the fact the Python 2.4 doesn'...

noreply at github.com noreply at github.com
Tue Apr 5 12:17:03 EDT 2011


Branch: refs/heads/master
Home:   https://github.com/numpy/numpy

Commit: cff9ccb8340d7f4efcd721e1fd9ce36be27e337d
    https://github.com/numpy/numpy/commit/cff9ccb8340d7f4efcd721e1fd9ce36be27e337d
Author: Charles Harris <charlesr.harris at gmail.com>
Date:   2011-04-05 (Tue, 05 Apr 2011)

Changed paths:
  M numpy/lib/npyio.py

Log Message:
-----------
BUG: Workaround for the fact the Python 2.4 doesn't accept 'Ub' as a file
mode, but does accept 'rbU'. Note that with either of these modes Python 3
fails to split files with '\r' line endings on linux. This is either a bug
in Python 3 or something that requires more extensive modifications to
genfromtxt. Because genfromtxt now accepts generators it should be possible
to write a generator that opens files in text mode and encodes the lines
as byte streams, and this should provide a workaround.





More information about the Numpy-svn mailing list