On Thu, May 8, 2008 at 9:07 PM, Robert Kern <[EMAIL PROTECTED]> wrote:

> On Thu, May 8, 2008 at 9:52 PM, Anne Archibald
> <[EMAIL PROTECTED]> wrote:
>
> > Thanks! Done add, reduce, outer, and reduceat. What about __call__?
>
> If anyone knows enough to explicitly request a docstring from
> __call__, they already know what it does.
>
> --
>

It's easier/better to do this in numpy/add_newdocs.py. For example:

In [14]: from  numpy.lib import add_newdoc as add

In [15]: add('numpy.core','ufunc',('reduce','hello world'))

In [16]: ufunc.reduce.__doc__
Out[16]: 'hello world'

You don't have to clutter up the c sources and you can use """ """, instead
of putting all those newlines in.

Chuck
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to