Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #9206

Re: Function docstring as a local variable

References <mailman.857.1310338213.1164.python-list@python.org> <e44a7596-d01f-484b-9802-1e97fbbcf30f@glegroupsg2000goo.googlegroups.com> <20110711000054.GF12935@johnsons-web.com>
Date 2011-07-10 17:09 -0700
Subject Re: Function docstring as a local variable
From Chris Rebert <clp2@rebertia.com>
Newsgroups comp.lang.python
Message-ID <mailman.866.1310342970.1164.python-list@python.org> (permalink)

Show all headers | View raw


On Sun, Jul 10, 2011 at 5:00 PM, Tim Johnson <tim@johnsons-web.com> wrote:
> * Carl Banks <pavlovevidence@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Function docstring as a local variable Carl Banks <pavlovevidence@gmail.com> - 2011-07-10 15:59 -0700
  Re: Function docstring as a local variable Corey Richardson <kb1pkl@aim.com> - 2011-07-10 19:06 -0400
    Re: Function docstring as a local variable alex23 <wuwei23@gmail.com> - 2011-07-10 21:14 -0700
  Re: Function docstring as a local variable Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-10 18:27 -0500
  Re: Function docstring as a local variable Tim Johnson <tim@johnsons-web.com> - 2011-07-10 16:00 -0800
  Re: Function docstring as a local variable Chris Rebert <clp2@rebertia.com> - 2011-07-10 17:09 -0700
  Re: Function docstring as a local variable Chris Rebert <clp2@rebertia.com> - 2011-07-10 17:16 -0700
  Re: Function docstring as a local variable Tim Johnson <tim@johnsons-web.com> - 2011-07-10 16:21 -0800
  Re: Function docstring as a local variable Corey Richardson <kb1pkl@aim.com> - 2011-07-10 20:26 -0400

csiph-web