[Numpy-discussion] umath ufunc docstrings
Pauli Virtanen
pav@iki...
Sat May 31 14:49:37 CDT 2008
Hi,
I'd like to adjust the way numpy.core.umath ufunc docstrings are defined
to make them more easy to handle in the ongoing documentation marathon:
- Remove the signature magic in ufunc_get_doc
- Define ufunc docstrings in a separate module
instead of in generate_umath.py, in the same format as in
add_newdocs.py
Suggested patch is attached; it passes numpy tests. Any thoughts on
whether it should go in?
I was also thinking about the problem with pydoc.help and ufuncs: would
making PyUFuncObject a subclass of PyFunctionObject be a reasonable fix?
Pauli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: umath-docstrings.patch
Type: text/x-patch
Size: 26303 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080531/84f723d0/attachment-0002.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digitaalisesti allekirjoitettu viestin osa
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080531/84f723d0/attachment-0003.bin
More information about the Numpy-discussion
mailing list