Function docstring as a local variable
Chris Rebert
clp2 at rebertia.com
Sun Jul 10 20:09:27 EDT 2011
On Sun, Jul 10, 2011 at 5:00 PM, Tim Johnson <tim at johnsons-web.com> wrote:
> * Carl Banks <pavlovevidence at gmail.com> [110710 15:18]:
>> On Sunday, July 10, 2011 3:50:18 PM UTC-7, Tim Johnson wrote:
<snip>
>> > ## Is it possible to get the module docstring
>> > ## from the module itself?
>>
>> print __doc__
> Thanks Carl.
>
> Where is general documentation on the subject of variables
> beginning with 2 underscores?
>
> I'm presuming the key phrase is 'builtin variables'. I'm searching
> too ...
I've never heard that phrase used to describe __doc__ or its friends.
Look in the "underscore" section of the documentation index:
http://docs.python.org/genindex-_.html
Cheers,
Chris
More information about the Python-list
mailing list