[Numpy-discussion] Should 0-d arrays with fields defined return a 0-d array or a scalar

Travis Oliphant oliphant at ee.byu.edu
Fri Mar 30 13:26:08 EDT 2007


mark wrote:

>Does this mean, we could do something like this?
>
>a = 3
>a = array(a)
>a[ a<4 ] = 5
>  
>

No.  That would be a separate change.

-Travis




More information about the NumPy-Discussion mailing list