[Numpy-discussion] Why are ufunc docstrings useless?

Anne Archibald peridot.faceted@gmail....
Thu May 8 22:39:08 CDT 2008

2008/5/8 Robert Kern <robert.kern@gmail.com>:
> On Thu, May 8, 2008 at 9:52 PM, Anne Archibald
> <peridot.faceted@gmail.com> 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.

How exactly are they to find out? It does take additional arguments,
for example dtype and out - I think.

Also, help(np.add) displays the the object, its docstring, its
methods, and all their docstrings. So it provides a way to get a
docstring out of __call__ without having to know what it is.


More information about the Numpy-discussion mailing list