[Numpy-discussion] Non-regular lists in numarray

Francesc Alted falted at openlc.org
Fri Feb 21 03:18:03 CST 2003


I've found that numarray.array doesn't check enough the input for
non-regular objects. For example:

In [95]: numarray.array([3., [4, 5.2]])
Out[95]: array([ 3.       ,  5.7096262])


In [96]: Numeric.array([3., [4, 5.2]])
TypeError                                 Traceback (most recent call last)


TypeError: bad argument type for built-in operation

I find Numeric behaviour more appropriate.


Francesc Alted

More information about the Numpy-discussion mailing list