Cython needs better support for API documentation

Bug #129236 reported by scoder
2
Affects Status Importance Assigned to Milestone
Cython
Confirmed
Wishlist
Unassigned

Bug Description

Currently, Python functions and methods in Cython generated C modules cannot provide their signature to interactive introspection. This is a major problem for the "help()" function in the interpreter (where function signatures look like "parse(...)"), but also to API doc generation tools like epydoc.

epydoc supports a special first line in the docstring here that mimics the look of the signature:

http://epydoc.sourceforge.net/api/epydoc.docstringparser-module.html#parse_function_signature
http://epydoc.sourceforge.net/api/epydoc.docstringparser-pysrc.html#parse_function_signature

Cython could generate such a line based on the original source signature.

scoder (scoder)
Changed in cython:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
robertwb (robertwb) wrote :

Due to a patch by Nick Alexander, special functions now inherit docstrings et. al.

Revision history for this message
William Stein (wstein) wrote : Re: [Bug 129236] Re: Cython needs better support for API documentation

YES!

On 8/20/07, robertwb <email address hidden> wrote:
> Due to a patch by Nick Alexander, special functions now inherit
> docstrings et. al.
>
> --
> Cython needs better support for API documentation
> https://bugs.launchpad.net/bugs/129236
> You received this bug notification because you are a member of Cython-
> dev, which is the bug contact for Cython.
>

--
William Stein
Associate Professor of Mathematics
University of Washington
http://www.williamstein.org

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.