[Numpy-discussion] immediate fill after empty gives None. (original) (raw)

George Nurser gnurser at googlemail.com
Fri Jun 30 05:02:56 EDT 2006


Have I done something silly here, or is this a bug?

Opteron 64-bit, r2631 SVN.

In [4]: depths_s2 = empty(shape=(5,),dtype=float) In [5]: depths_s2.fill(2.e5) In [6]: depths_s2 Out[6]: array([ 200000., 200000., 200000., 200000., 200000.])

In [11]: depths_s2 = (empty(shape=(5,),dtype=float)).fill(2.e5) In [12]: print depths_s2 None

--George Nurser.



More information about the NumPy-Discussion mailing list