From the docstring:
a.fill(value) -> None. Fill the array with the scalar value.
The method modifies the array, but does not return it.
Matthieu
2008/11/18 frank wang
Hi,
My numpy is 1.2.1 and python is 2.5.2.
In python, I did:
from numpy import * x=array([1,2,3]) z=x.fill(x) print z None
z should be filled with zero. I do not knwo why I got None. Can anyone help me on this?
Thanks
Frank
________________________________ Proud to be a PC? Show the world. Download the "I'm a PC" Messenger themepack now. Download now. _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
-- Information System Engineer, Ph.D. Website: http://matthieu-brucher.developpez.com/ Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92 LinkedIn: http://www.linkedin.com/in/matthieubrucher