On Fri, Aug 29, 2008 at 10:19 AM, dmitrey <[EMAIL PROTECTED]> wrote:
> hi all,
> isn't it a bug
> (latest numpy from svn, as well as my older version)
>
> from numpy import array
> print array((1,2,3)).fill(10)
> None

Yeah, I do stuff like that too. fill works in place so it returns None.

>> x = np.array([1,2])
>> x.fill(10)
>> x
   array([10, 10])
>> x = x.fill(10)  # <-- Danger!
>> print x
None
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to