[issue46466] help function reads comments
Steven D'Aprano
report at bugs.python.org
Fri Jan 21 21:34:41 EST 2022
Steven D'Aprano <steve+python at pearwood.info> added the comment:
That's not a bug.
https://docs.python.org/3/library/pydoc.html
"If there is no docstring, pydoc tries to obtain a description from the block of comment lines just above the definition of the class, function or method in the source file, or at the top of the module (see inspect.getcomments())."
----------
nosy: +dam1784, steven.daprano
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46466>
_______________________________________
More information about the Python-bugs-list
mailing list