4.7 Generate documents using pydoc
By using the pydoc
module, documentation is generated in the desired format.
Following command generates html version of document at source level directory.
python -m pydoc -w sample_fixed
Python: module sample_fixed
sample_fixed.py.
Classes |
| |
- builtins.object
-
- AddTen
class AddTen(builtins.object) |
|
AddTen(user_input: int = 0)
Class for add ten to a given number. |
|
Methods defined here:
- __init__(self, user_input: int = 0)
- Initialization.
- add_ten(self) -> int
- Init for calss.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |
Data |
| |
a = <sample_fixed.AddTen object>
c = 20 |