docstring that use globals?

Gregory Ewing greg.ewing at canterbury.ac.nz
Sat Oct 16 23:24:07 CEST 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