Re: [Numpy-discussion] bug in genfromtxt for python 3.2

2011-03-30 Thread Ralf Gommers
On Wed, Mar 30, 2011 at 3:39 AM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Mon, Mar 28, 2011 at 11:29 PM,  josef.p...@gmail.com wrote: numpy/lib/test_io.py    only uses StringIO in the test, no actual csv file If I give the filename than I get a  TypeError: Can't convert 'bytes'

Re: [Numpy-discussion] bug in genfromtxt for python 3.2

2011-03-30 Thread Matthew Brett
Hi, On Wed, Mar 30, 2011 at 10:02 AM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Wed, Mar 30, 2011 at 3:39 AM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Mon, Mar 28, 2011 at 11:29 PM,  josef.p...@gmail.com wrote: numpy/lib/test_io.py    only uses StringIO in the test, no

Re: [Numpy-discussion] bug in genfromtxt for python 3.2

2011-03-30 Thread Ralf Gommers
On Wed, Mar 30, 2011 at 7:37 PM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Wed, Mar 30, 2011 at 10:02 AM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Wed, Mar 30, 2011 at 3:39 AM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Mon, Mar 28, 2011 at 11:29 PM,  

Re: [Numpy-discussion] bug in genfromtxt for python 3.2

2011-03-30 Thread Pauli Virtanen
On Wed, 30 Mar 2011 10:37:45 -0700, Matthew Brett wrote: [clip] imagine I'm working with a non-latin default encoding, and I've opened a file: fobj = open('my_nonlatin.txt', 'rt') in python 3.2. That might contain numbers and non-latin text. I can't pass that into 'genfromtxt' because

Re: [Numpy-discussion] bug in genfromtxt for python 3.2

2011-03-30 Thread Matthew Brett
Hi, On Wed, Mar 30, 2011 at 11:32 AM, Pauli Virtanen p...@iki.fi wrote: On Wed, 30 Mar 2011 10:37:45 -0700, Matthew Brett wrote: [clip] imagine I'm working with a non-latin default encoding, and I've opened a file: fobj = open('my_nonlatin.txt', 'rt') in python 3.2.  That might contain

[Numpy-discussion] bug in genfromtxt for python 3.2

2011-03-29 Thread josef . pktd
numpy/lib/test_io.pyonly uses StringIO in the test, no actual csv file If I give the filename than I get a TypeError: Can't convert 'bytes' object to str implicitly from the statsmodels mailing list example data = recfromtxt(open('./star98.csv', U), delimiter=,, skip_header=1,

Re: [Numpy-discussion] bug in genfromtxt for python 3.2

2011-03-29 Thread Matthew Brett
Hi, On Mon, Mar 28, 2011 at 11:29 PM, josef.p...@gmail.com wrote: numpy/lib/test_io.py    only uses StringIO in the test, no actual csv file If I give the filename than I get a  TypeError: Can't convert 'bytes' object to str implicitly from the statsmodels mailing list example data =