Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'received:209.85.160.174': 0.09; 'received:mail-gy0-f174.google.com': 0.09; 'subject:Function': 0.09; 'wrote:': 0.15; 'docstring': 0.16; 'presuming': 0.16; 'subject:variable': 0.16; "\xc2\xa0i'm": 0.16; 'cc:addr:python-list': 0.16; 'pm,': 0.16; 'phrase': 0.19; 'cheers,': 0.19; 'cc:2**0': 0.21; 'cc:no real name:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'sunday,': 0.23; "i'm": 0.27; 'message-id:@mail.gmail.com': 0.28; 'variables': 0.29; 'cc:addr:python.org': 0.30; 'module': 0.30; 'carl': 0.30; 'sun,': 0.30; 'print': 0.32; 'chris': 0.32; "i've": 0.33; 'received:209.85.160': 0.34; '...': 0.34; 'describe': 0.34; 'johnson': 0.35; 'url:python': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'url:org': 0.38; 'subject:: ': 0.38; 'url:docs': 0.39; 'received:209': 0.40; 'subject': 0.62; 'july': 0.64; '5:00': 0.84; 'sender:addr:chris': 0.84; 'subject:local': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=zwu/DB33G3hDswVcNiwS/rPB252ElBGBxJQ931MebEg=; b=Jn1GYojXPk4seA5dXLzulqbmsP5YDnhozucng755IxbJeXyP+iUCXnG9Yyn5xKWKz8 driFE4t0qvNV7RWyORbRJqX1WppAzDJ8T6FKI5nA81SDeBghH42ALdKx6Yq1RwK/AkPE EJTxgicQbkCxF0aJCp7LNGwy0Jpqv1lOWb+nE= MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: <20110711000054.GF12935@johnsons-web.com> References: <20110711000054.GF12935@johnsons-web.com> Date: Sun, 10 Jul 2011 17:09:27 -0700 X-Google-Sender-Auth: VMaq1hSnjMRbpQ4YoG5lTVXomgc Subject: Re: Function docstring as a local variable From: Chris Rebert To: Tim Johnson Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310342970 news.xs4all.nl 21767 [2001:888:2000:d::a6]:36288 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9206 On Sun, Jul 10, 2011 at 5:00 PM, Tim Johnson wrote: > * Carl Banks [110710 15:18]: >> On Sunday, July 10, 2011 3:50:18 PM UTC-7, Tim Johnson wrote: >> > =C2=A0## Is it possible to get the module docstring >> > =C2=A0## from the module itself? >> >> print __doc__ > =C2=A0Thanks Carl. > > =C2=A0Where is general documentation on the subject of variables > =C2=A0beginning with 2 underscores? > > =C2=A0I'm presuming the key phrase is 'builtin variables'. I'm searching > =C2=A0too ... 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