Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news.stack.nl!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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'content- type:multipart/signed': 0.09; 'filename:fname piece:signature': 0.09; 'header:In-reply-to:1': 0.09; 'subject:Function': 0.09; "'and": 0.16; '(besides': 0.16; 'abraham': 0.16; 'content- type:application/pgp-signature': 0.16; 'docstring': 0.16; 'filename:fname piece:asc': 0.16; 'filename:fname:signature.asc': 0.16; 'from:addr:kb1pkl': 0.16; 'from:name:corey richardson': 0.16; 'richardson': 0.16; 'subject:variable': 0.16; 'def': 0.16; 'to:name:python-list': 0.19; 'is?': 0.22; "doesn't": 0.22; 'though.': 0.23; 'string': 0.26; 'pass': 0.28; 'object': 0.30; '-0400': 0.30; 'print': 0.32; 'it.': 0.33; 'actually': 0.33; 'to:addr:python-list': 0.34; 'header:User-Agent:1': 0.34; 'points': 0.34; 'try:': 0.35; 'skip:" 10': 0.36; 'received:76': 0.38; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'matter': 0.61; 'header:Message-Id:1': 0.61; 'received:172.29': 0.64; 'received:r1000.mx.aol.com': 0.64; 'from:addr:aim.com': 0.67; 'freedom': 0.68; '2011:': 0.84; 'subject:local': 0.84 Subject: Re: Function docstring as a local variable From: Corey Richardson To: python-list In-reply-to: References: <64b5198e-5cc7-4790-898e-7f1abb199230@y24g2000yqb.googlegroups.com> Date: Sun, 10 Jul 2011 19:00:11 -0400 User-Agent: Sup/0.12.1 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha256"; boundary="=-1310338815-323344-8792-8161-1-="; protocol="application/pgp-signature" x-aol-global-disposition: G X-AOL-VSS-INFO: 5400.1158/72244 X-AOL-VSS-CODE: scan_error X-AOL-SCOLL-SCORE: 0:2:416171008:93952408 X-AOL-SCOLL-URL_COUNT: 0 x-aol-sid: 3039ac1d33824e1a2f1c64f1 X-AOL-IP: 76.119.157.207 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: 55 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310339158 news.xs4all.nl 21843 [2001:888:2000:d::a6]:53470 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9196 --=-1310338815-323344-8792-8161-1-= Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: quoted-printable Excerpts from Colin J. Williams's message of Sun Jul 10 18:28:15 -0400 20= 11: > Try: > = > def f(): > ds=3D """docstring""" > print ds That doesn't actually make a docstring, though. It makes a string object = and points the name ds at it. Do you know what a docstring is? def foo(): """I am a docstring""" pass def bar(): ds =3D "I am not a docstring!" def baz(): "I am a docstring too!" pass def qux(): 'And even me! Quote type don't matter (besides style)' pass -- = Corey Richardson "Those who deny freedom to others, deserve it not for themselves" -- Abraham Lincoln --=-1310338815-323344-8792-8161-1-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQEcBAEBCAAGBQJOGi7/AAoJEAFAbo/KNFvpQ6AH+gMFXBda/VwzmbdUBJYLTU00 /X2iqiN10sejZNnSvLAd02vEXbT2FPNy54X1ehNyNhBVre4JslaeZK+6Z+ruzHvA GRegRofTDobLR0GWUKvDLk4369+80IA22gJlbZpYmYwTjDh5gkJchdJ9cGDk5ZXW hgNsav6qFpW7ok37/zVY14ljGtY3gOIR9yHHhnnoiZVRK5leWWlfk2JTpuvTNuCX znL6C0bvmealq1VChEr/LNtmq1Q8wnyUy3qmhMiHs++suJbmpcJrtiyc9pyjVpee vhWSzH2L60pgLqZDA8A/eN0ni8/8jvcwnBpwJbS+Gsuw9cQo8w88pruU6mB3scA= =zsEq -----END PGP SIGNATURE----- --=-1310338815-323344-8792-8161-1-=--