What to do if No Python documentation found for ... appears in pydoc

phenomenon

[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?

Cause

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.

Correspondence

This solves

[kimisyo@localhost work]$ pydoc3 test

Recommended Posts

What to do if No Python documentation found for ... appears in pydoc
What to do if you get `No kernel for language python found` in Hydrogen
What to do when [Errno 2] No such file or directory appears in Python
What to do if ʻarguments [0] .scrollIntoView ();` fails in python selenium
What to do when "SSL: CERTIFICATE_VERIFY_FAILED _ssl.c: 1056" appears in Python
What to do if Python doesn't work on Git for Windows
What to do if you get a minus zero in Python
What to do if python says "fatal error:'stdio.h' file not found"
What to do if Insecure Platform Warning appears when running Python
What to do when ModuleNotFoundError: No module named'XXX' occurs in Python
What to do if you get Swagger-codegen in python and Import Error: No module named
What to do if there is a decimal in python json .dumps
What to do if pipreqs results in UnicodeDecodeError
What to do if you can't use scikit grid search in Python
What to do to get google spreadsheet in python
What to do if "amazon-linux-extras" → "No module named amazon_linux_extras"
What to do when a warning appears around Python integration in Neovim's CheckHealth
What to do if a Unicode Encode Error occurs in Sublime Text Python
What to do if you get "Python not configured." Using PyDev in Eclipse
What to do if NotADirectoryError: [Errno 20] Not a directory:'xdg-settings' appears in jupyter notebook
What to do if pip install fails in Xcode 5.1
[openpyxl] What to do when IllegalCharacterError appears in pandas.DataFrame.to_excel
No module named What to do if you get'libs.resources'
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
What to do if a UnicodeDecodeError occurs in pip
[Python] What to do when No module named'pyproj.datadir' appears when Exe is done with PyInstaller
What to do if ENOENT: no such file or directory appears during npm install
What to do if the print command itself causes an error in Maya python
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if the progress bar is not displayed in tqdm of python
What to do if Python IntelliSense is not displayed in VS Code on Windows
What to do if Sort imports get stuck in VS Code's Python Extension (around 2020/09)
What to do if Python does not switch from the System version in pyenv
What to do if you can't hit the arrow keys in the Python interactive console
What to do if you run python in IntelliJ and end with an error
What to do if pip gives a DistributionError in Homebrew
What to do if you get "coverage unknown" in Coveralls
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do when "Invalid HTTP_HOST header" appears in Django
What to do if you can't log in as root
What to do if Linux VLC can no longer rotate
[Python] How to do PCA in Python
What to do if yum breaks
What to do when there is no response due to Proxy setting in Python web scraping
What to do with PYTHON release?
How to log with python (when No handlers could be found for logger "__main__" appears)
What to do if you get a Cannot retrieve metalink for repository error in yum
Do you want to wait for general purpose in Python Selenium?
What to do if you can't install pyaudio with pip #Python
What to do if "Unnamed: 0" is added in to_csv-> read_csv in pandas
What to do if PyAudio cannot be installed on Python 3.7, 3.8, 3.9 on Windows
What to do if you can't use the trash in Lubuntu 18.04.
What to do when the value type is ambiguous in Python?
What to do if grep: empty (sub) expression appears on Mac grep
How to do R chartr () in Python
How to resolve "No kernel of grammar Python found" error in Atom
What to do if you couldn't send an email to Yahoo with Python.
What to do if ipython and python start up with different versions
What to do if you get lost in file reference with FileNotFoundError
What to do if you get angry in TensorFlow v2 without attribute'app'
What to do if the server doesn't start with python manage.py runserver