docstring that use globals?

kj no.email at please.post
Sun Oct 17 00:43:38 CEST 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