[Techtalk] Python doc strings
dominik schramm
dominik.schramm at gmxpro.net
Mon Apr 26 01:02:43 EST 2004
Hi Carla,
I don't remember much from my Python attempts, but...
The documentation string is returned by the __doc__ member function.
If this is used at all is up to the program that uses the function
(such as the GUI). I don't know any Python GUIs, unfortunately.
Carla Schroder <carla at bratgrrl.com> writes:
> >>> print my_function.__doc__
these are two pairs of underscores _ _ doc _ _
> >>> print wicked_kewl_function._doc_
one underscore too few on each side.
hope this helped,
dominik
More information about the Techtalk
mailing list