[Numpy-discussion] `out` argument to ufuncs
Pauli Virtanen
pav at iki.fi
Thu Sep 4 14:09:32 EDT 2008
Thu, 04 Sep 2008 15:32:18 +0200, Gael Varoquaux wrote:
[clip]
> Cool. Either that, or fix'n the docs. I had a look at the docstring and
> it wasn't hinted by the docstring. THe docstring editor is here for
> fixing these details, but I think I'll simply wait for you to add the
> keyword argument :).
The ufunc signatures in the docstrings are automatically generated in
ufuncobject.c.
I changed the code in r5768 so that it's more obvious the various
functions take output arguments. When the interface gets adjusted so that
'out' are actually keyword arguments, the signature formatting needs to
be changed again so that 'outN' look like keyword arguments.
Currently the 'sig' and 'extobj' arguments are not shown in the
signature. I'm not sure whether it makes sense to add them, since they
appear to be for quite exotic use only...
todo.pop(); todo.append(B)
--
Pauli Virtanen
More information about the NumPy-Discussion
mailing list