[Pythonmac-SIG] Python IDE/Interpreter bug?

Ron Cohen rcohen@llnl.gov
Fri, 28 Apr 2000 00:10:57 -0700 (PDT)


Seems to work OK with numpy that comes with 1.5.1 for Unix (Solaris):

Python 1.5.1 (#3, Jul  2 1999, 14:41:28)  [GCC 2.8.1] on sunos5
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> from Numeric import *
>>> x=array(range(5),float)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: argument 2: expected string, builtin_function_or_method
found
>>> x=array(range(5),Float)
>>>

-Ron Cohen-




Just van Rossum writes:
 > At 4:47 PM -0400 27-04-2000, Louis M. Pecora wrote:
 > >(Interactive mode) Type the following
 > >
 > >>>> from Numeric import *
 > >>>> x=array(range(5),float)  # instead of x=array(range(5),Float)
 > >
 > >Hit return and I get a crash (Type 2 error) everytime.  Macsbug shows the
 > >error occurred in Python IDE in the routine init_numpy.
 > >
 > >Same thing happens with x=array(range(5),int).  The line
 > >x=array(range(5),Int)  works fine. Something is _not_ checking for the
 > >validity of the second argument to array.
 > >
 > >Anyone else replicate this?
 > 
 > Yes: interesting bug... Except it isn't in the IDE, nor the interpreter,
 > but in the Numeric extension. The version of Numeric shipped with MacPython
 > is not the latest, so maybe it's already been solved. Would you like to
 > check with the NumPy people @ numpy.sourceforge.com?
 > 
 > Just
 > 
 > 
 > 
 > _______________________________________________
 > Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
 > http://www.python.org/mailman/listinfo/pythonmac-sig
 >