mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#22613: minor other fixes in library docs (thanks Jacques Ducasse)
This commit is contained in:
parent
2677faecf5
commit
8ed75cd8e9
9 changed files with 35 additions and 30 deletions
|
@ -20,6 +20,13 @@ The :mod:`pydoc` module automatically generates documentation from Python
|
|||
modules. The documentation can be presented as pages of text on the console,
|
||||
served to a Web browser, or saved to HTML files.
|
||||
|
||||
For modules, classes, functions and methods, the displayed documentation is
|
||||
derived from the docstring (i.e. the :attr:`__doc__` attribute) of the object,
|
||||
and recursively of its documentable members. If there is no docstring,
|
||||
:mod:`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 :func:`inspect.getcomments`).
|
||||
|
||||
The built-in function :func:`help` invokes the online help system in the
|
||||
interactive interpreter, which uses :mod:`pydoc` to generate its documentation
|
||||
as text on the console. The same text documentation can also be viewed from
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue