June 2019
Beginner to intermediate
770 pages
19h 24m
English
We use the library module, pydoc, to produce HTML documentation from Python code. It turns out that we're using it when we evaluate help() in interactive Python. This function produces the text mode documentation with no markup.
When we use pydoc to produce the documentation, we'll use it in one of the following ways:
We can run the following command-line tool to prepare the text-based documentation for a module:
pydoc somemodule
We can also use the following code:
python3 -m pydoc somemodule
Either command will create text documentation based on the Python ...
Read now
Unlock full access