On 23 Nov 2012 03:34, "Charles R Harris" <[email protected]> wrote:
>
> Examples,
>
> In [13]: ones(()).flags.writeable
> Out[13]: True
>
> In [14]: (-ones(())).flags.writeable
> Out[14]: False
>
> In [15]: (-1*ones(())).flags.writeable
> Out[15]: False
>
> In [16]: (1 + ones(())).flags.writeable
> Out[16]: False
>
> In [17]: array(1)
> Out[17]: array(1)
>
> In [18]: array(1).shape
> Out[18]: ()
>
> In [19]: array(1).flags.writeable
> Out[19]: True

Looks like a bug in the ufunc output value setup code or something?

-n
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to