You can call help on anything. Here I am asking for help on something I have no clue about:
>>> from server.db import db
>>> help(db)
help on Client in module google.cloud.firestore_v1beta1.client object:
class Client(google.cloud.client.ClientWithProject)
| Client(project=None, credentials=None, database='(default)')
|
| Client for interacting with Google Cloud Firestore API.
|
| .. note::
|
| Since the Cloud Firestore API requires the gRPC transport, no
| ``_http`` argument is accepted by this class.
...
Yes! And implementing this help text for your library is free. It just assembles the docstrings found in your code. And then your favourite text editor can use this for autocomplete and such as well.
Treating docstrings as an actual reflectable part of a class/function and not just "comments to be ignored by a parser" is brilliant.
The documentation could clearly be prettier but its strength lies in its standardization : I can get method arguments and examples for all functions of all packages in the same format and with a single keystroke.
I could not help but comment to add Elixir to the list of languages with amazing discoverability. For things in the standard library, you essentially get a condensed version of Python web documentation, with examples!
With Python, many times I vaguely know something but dunno what it is exactly. This cheatsheet solves that!