[issue16801] Preserve original representation for integers / floats in docstrings

Georg Brandl report at bugs.python.org
Sat Dec 29 19:22:57 CET 2012


Georg Brandl added the comment:

A simple, minimal-invasive solution would be to allow a signature for documentation purposes as the first line of the docstrings.

pydoc could recognize this (if docstring.startswith(func.__name__ + '(') or something like that), and display the given signature instead of the introspected one.

----------
nosy: +georg.brandl

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16801>
_______________________________________


More information about the Python-bugs-list mailing list