Files
cheatsheet-tldr/tldr/pydoc
2025-04-24 00:19:06 +00:00

22 lines
460 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pydoc
> Display offline Python documentation.
> More information: <https://docs.python.org/library/pydoc.html>.
- 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`