Ticket #2 (closed enhancement: fixed)
Cython needs better support for API documentation
| Reported by: | robertwb | Owned by: | dalcinl@… |
|---|---|---|---|
| Priority: | major | Milestone: | 0.10 |
| Component: | Packaging | Keywords: | |
| Cc: |
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.
Change History
Note: See
TracTickets for help on using
tickets.
