2025-03-14 21:59:59 -06:00
|
|
|
# pydoc
|
|
|
|
|
|
|
|
|
|
> Display offline Python documentation.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://docs.python.org/library/pydoc.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Print documentation on a subject (Python keyword, topic, function, module, package, etc.):
|
|
|
|
|
|
|
|
|
|
`pydoc {{subject}}`
|
|
|
|
|
|
|
|
|
|
- Start an HTTP server on an arbitrary unused port and open a [b]rowser to see the documentation:
|
|
|
|
|
|
|
|
|
|
`pydoc -b`
|
|
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`pydoc`
|