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


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

Reply via email to