Excerpts from Colin J. Williams's message of Sun Jul 10 18:28:15 -0400 2011:
Try:
def f():
ds= """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 = "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
-----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-----