[Numpy-discussion] Current ufunc signatures for review
Pauli Virtanen
pav at iki.fi
Sun May 25 14:42:13 EDT 2008
su, 2008-05-25 kello 12:12 -0600, Charles R Harris kirjoitti:
[clip]
> 1) Help strings on ufuncs don't work. This seems to be a problem with the help function, as
> printing the relevant __doc__ works fine. The docstrings are currently defined in
> code_generators/generate_umath.py and add_newdoc doesn't seem to work for them.
Yes, this is a problem with the help function. In pydoc.py in the Python
standard library:
def doc(...):
...
if not (inspect.ismodule(object) or
inspect.isclass(object) or
inspect.isroutine(object) or
inspect.isgetsetdescriptor(object) or
inspect.ismemberdescriptor(object) or
isinstance(object, property)):
# If the passed object is a piece of data or an instance,
# document its available methods instead of its value.
object = type(object)
...
Is it possible to make one of the above conditions True for ufuncs?
--
Pauli Virtanen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digitaalisesti allekirjoitettu viestin osa
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080525/f2b1385a/attachment.sig>
More information about the NumPy-Discussion
mailing list