Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsreader4.netcologne.de!news.netcologne.de!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '3.2': 0.05; 'cpython': 0.05; 'python': 0.08; '>>>>': 0.09; 'pgp': 0.09; 'subject:Function': 0.09; 'message-----': 0.12; 'received:209.85.214.174': 0.13; 'received:mail- iw0-f174.google.com': 0.13; 'wrote:': 0.15; '"copyright",': 0.16; '"credits"': 0.16; '"license"': 0.16; '-----begin': 0.16; '----- end': 0.16; '3.2.': 0.16; '[gcc': 0.16; 'gnupg': 0.16; 'hash:': 0.16; 'linux2': 0.16; 'richardson': 0.16; 'subject:variable': 0.16; 'thunderbird': 0.16; 'url:enigmail': 0.16; 'url:mozdev': 0.16; 'pm,': 0.16; 'def': 0.16; 'comment:': 0.19; 'header:In- Reply-To:1': 0.22; 'windows': 0.26; 'received:209.85.214': 0.28; 'id:': 0.29; 'print': 0.32; 'signed': 0.32; 'message- id:@gmail.com': 0.32; 'to:addr:python-list': 0.34; 'header:User- Agent:1': 0.34; '...': 0.34; 'none': 0.35; 'using': 0.37; 'received:192': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'url:org': 0.38; 'subject:: ': 0.38; 'received:192.168.1': 0.39; 'version:': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; '2.7.1': 0.84; '5.0': 0.84; 'subject:local': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=Dos/PRhhixWo6zCVFAI5XgzNrj+MSp9bhv0YsRoJctY=; b=YDuX0qsa2dWeqtwBgkx56+uZloXIUjCXAsMOqrtYI+21ojKAV/hUKEMFWS9XA1yGVo VS1k6DBw4jX+0K4Z+Q1PKpmObcDDGDnqrLJbcVayAIjKoJHxF8+feDdABLAAgUhQwk0Z B21tpFn+lhqEFCx/MTiILd3ERjj8YnrKZlK14= Date: Sun, 10 Jul 2011 18:27:53 -0500 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: "comp.lang.python" Subject: Re: Function docstring as a local variable References: <1310339164-sup-5162@dalek> In-Reply-To: <1310339164-sup-5162@dalek> X-Enigmail-Version: 1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310340495 news.xs4all.nl 21813 [2001:888:2000:d::a6]:45671 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9201 -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 On 2011.07.10 06:06 PM, Corey Richardson wrote: > Python 2.7.1 (r271:86832, Jul 8 2011, 22:48:46) [GCC 4.4.5] on > linux2 Type "help", "copyright", "credits" or "license" for more > information. >>>> def foo(): > ... "Docstring" ... print __doc__ ... >>>> foo() > None I get the same result with Python 3.2. - -- CPython 3.2 | Windows NT 6.1.7601.17592 | Thunderbird 5.0 PGP/GPG Public Key ID: 0xF88E034060A78FCB -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAwAGBQJOGjV5AAoJEPiOA0Bgp4/LF2YH/jaEjS6sFuwekVG0cKyjnx/z 8j28OHB9mklXg6oEMSsypU5dVPst2a6fmEHm+sXPYgQHZ9tk0oun+xxmdldNyV8h knfFVgMC5ww1Q7gLkPWzY8me3k4YcokYGhsuwXEGBvPby4M4ZC5uyetKTzVWp+uH sO11DPBaaXzGj7E7wu+HbfWsvPxw9h9jfJ7ihjhHNSUiL3MkGEqlxK8Pw2o3cw1e sCY7XWm1x8qClJLrwwxnB7pfuOfNJ6aS3xLd8FFs4hRp1J9W+z4on91XZooa5kT+ UEfkrzppOjw1UNA1etxIGmJQ+/qrKSGg5Nmc4jHXNfwIZCECHuWxEqaL5e0WdHU= =5gdS -----END PGP SIGNATURE-----