[Numpy-discussion] fill() function does not work.

frank wang f.yw at hotmail.com
Tue Nov 18 13:43:04 EST 2008


Thanks for the quick reply.
 
It is my fault to overlook the manual.
 
Frank> Date: Tue, 18 Nov 2008 19:36:23 +0100> From: matthieu.brucher at gmail.com> To: numpy-discussion at scipy.org> Subject: Re: [Numpy-discussion] fill() function does not work.> > >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 <f.yw at hotmail.com>:> > 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 at 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> _______________________________________________> Numpy-discussion mailing list> Numpy-discussion at scipy.org> http://projects.scipy.org/mailman/listinfo/numpy-discussion
_________________________________________________________________
Access your email online and on the go with Windows Live Hotmail.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_access_112008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20081118/93368e1a/attachment.html>


More information about the NumPy-Discussion mailing list