[Numpy-discussion] Py3: numpy.rec.array fails with open file

2011-05-25 Thread Christoph Gohlke
Hello, the following code raises a ValueError on Python 3, but works as expected with Python 2: import sys, numpy fd = open(sys.executable, 'rb') numpy.rec.array(fd, dtype=[('_', 'b')]) Traceback (most recent call last): File stdin, line 1, in module File

Re: [Numpy-discussion] Py3: numpy.rec.array fails with open file

2011-05-25 Thread Charles R Harris
On Wed, May 25, 2011 at 7:29 PM, Christoph Gohlke cgoh...@uci.edu wrote: Hello, the following code raises a ValueError on Python 3, but works as expected with Python 2: import sys, numpy fd = open(sys.executable, 'rb') numpy.rec.array(fd, dtype=[('_', 'b')]) Traceback (most recent

Re: [Numpy-discussion] Py3: numpy.rec.array fails with open file

2011-05-25 Thread Christoph Gohlke
On 5/25/2011 7:23 PM, Charles R Harris wrote: On Wed, May 25, 2011 at 7:29 PM, Christoph Gohlke cgoh...@uci.edu mailto:cgoh...@uci.edu wrote: Hello, the following code raises a ValueError on Python 3, but works as expected with Python 2: import sys, numpy fd =