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 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

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' be

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 wrote: > Hi, > > On Wed, Mar 30, 2011 at 10:02 AM, Ralf Gommers > wrote: >> On Wed, Mar 30, 2011 at 3:39 AM, Matthew Brett >> wrote: >>> Hi, >>> >>> On Mon, Mar 28, 2011 at 11:29 PM,   wrote: numpy/lib/test_io.py    only uses StringIO in the t

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 wrote: > On Wed, Mar 30, 2011 at 3:39 AM, Matthew Brett > wrote: >> Hi, >> >> On Mon, Mar 28, 2011 at 11:29 PM,   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

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 wrote: > Hi, > > On Mon, Mar 28, 2011 at 11:29 PM,   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 >> >> >>

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, 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 = recfromtxt

[Numpy-discussion] bug in genfromtxt for python 3.2

2011-03-28 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, >>