[kimisyo@localhost work]$ pydoc3 test.py
No Python documentation found for 'test.py'.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.
Why?
According to the command line reference, the argument must specify the module name, package name, class in the module, module in the package, etc. instead of the file name.
pydoc3 <name> ...
Show text documentation on something. <name> may be the name of a
Python keyword, topic, function, module, or package, or a dotted
reference to a class or function within a module or module in a
package. If <name> contains a '/', it is used as the path to a
Python source file to document. If name is 'keywords', 'topics',
or 'modules', a listing of these things is displayed.
This solves
[kimisyo@localhost work]$ pydoc3 test
Recommended Posts