docstring that use globals?

kj no.email at please.post
Sat Oct 16 18:43:38 EDT 2010


In <8hujfsFb9iU1 at mid.individual.net> Gregory Ewing <greg.ewing at canterbury.ac.nz> writes:

>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"

D'oh!  Thanks.




More information about the Python-list mailing list