[Numpy-discussion] Non-regular lists in numarray

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


Hi,

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

but,

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.

Regards,

-- 
Francesc Alted




More information about the NumPy-Discussion mailing list