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 > wrote: > > Hello, > > the following code raises a ValueError on Python 3, but works as > expected with Python 2: > > > >> import sys, numpy > > >> f

[Numpy-discussion] weird TypeError: only length-1 arrays can be converted to Python scalars

2011-05-25 Thread Wolfgang Kerzendorf
Dear all, I have come across a weird error, in which the traceback doesn't really reflect the problem (ah osx 10.6.7, python2.6, np 1.6, sp 0.9, ipython 0.10.1, mpl 1.0.1): File "weird_error.py", line 8, in fmin.simplex() File "/Users/wkerzend/scripts/python/pyspecgrid/specgrid

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

[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 "", line 1, in File "C:\Python32\lib\site-packages\

Re: [Numpy-discussion] [SciPy-User] [ANN] Guaranteed solution of nonlinear equation(s)

2011-05-25 Thread Dmitrey
--- Исходное сообщение --- От кого: "Yosef Meller" Кому: scipy-u...@scipy.org Дата: 25 мая 2011, 08:54:16 Тема: Re: [SciPy-User] [ANN] Guaranteed solution of nonlinear equation(s) On ??? ? 24 ??? 2011 13:22:47 Dmitrey wrote: > Hi all, >I have made my fr