Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #9205
| Date | 2011-07-10 16:00 -0800 |
|---|---|
| From | Tim Johnson <tim@johnsons-web.com> |
| Subject | Re: Function docstring as a local variable |
| References | <mailman.857.1310338213.1164.python-list@python.org> <e44a7596-d01f-484b-9802-1e97fbbcf30f@glegroupsg2000goo.googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.865.1310342448.1164.python-list@python.org> (permalink) |
* Carl Banks <pavlovevidence@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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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