[Numpy-discussion] Non-regular lists in numarray

Todd Miller jmiller at stsci.edu
Fri Feb 21 08:09:18 CST 2003


I logged this as a bug and I'll get to it as soon as I'm out of 
"numarray overhead reduction mode."

Thanks!

Todd

Francesc Alted wrote:

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







More information about the Numpy-discussion mailing list