[Numpy-discussion] immediate fill after empty gives None. (original) (raw)
George Nurser gnurser at googlemail.com
Fri Jun 30 05:02:56 EDT 2006
- Previous message (by thread): [Numpy-discussion] logspace behaviour/documentation
- Next message (by thread): [Numpy-discussion] immediate fill after empty gives None.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message (by thread): [Numpy-discussion] logspace behaviour/documentation
- Next message (by thread): [Numpy-discussion] immediate fill after empty gives None.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]