docstring that use globals?

Gregory Ewing greg.ewing at canterbury.ac.nz
Sat Oct 16 17:24:07 EDT 2010


kj wrote:

> The hardest case is "module docstrings".

Actually, that one's quite easy, just assign to __doc__.

__doc__ = "This is a %s docstring" % "made-up"

-- 
Greg



More information about the Python-list mailing list