docstrings

Rikard Bosnjakovic bos at hack.org
Thu May 31 12:09:13 EDT 2001


Laura Creighton wrote:
> 
> Where is the most up to date documentation for how to use them, with
> all the conventions, all the itty bits that most people don't use
> and you don't really have to,  and every sort of other really precise
> stuff?


>>> def foo():
...   "This is the doc."
...   pass
... 
>>> print foo.__doc__
This is the doc.



-- 
Rikard Bosnjakovic - http://bos.hack.org/cv/ - ICQ: 1158217

Anyone sending unwanted advertising e-mail to my address will be
charged $250 for network traffic and computing time. By extracting my
address from this message or its header, you agree to these terms.



More information about the Python-list mailing list