Function docstring as a local variable

Tim Johnson tim at johnsons-web.com
Sun Jul 10 20:00:54 EDT 2011


* Carl Banks <pavlovevidence at gmail.com> [110710 15:18]:
> On Sunday, July 10, 2011 3:50:18 PM UTC-7, Tim Johnson wrote:
> >   Here's a related question:
> >   I can get the docstring for an imported module:
> >   >>> import tmpl as foo
> >   >>> print(foo.__doc__)
> >   Python templating features
> > 
> >    Author - tim at akwebsoft dot com
> > 
> >  ## 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 ...

-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com



More information about the Python-list mailing list