How to comment constant values?

Bearophile bearophileHUGS at
Sun Jul 26 18:42:22 EDT 2009

Chris Rebert:
> Only modules, classes, and functions/methods can have docstrings
> associated with them.
> For anything else, you have to use comments; or you can mention them
> in the docstrings of related things.

What about adding docstrings to other Python things, especially to


More information about the Python-list mailing list