__doc__ print \012 on Debian Gnulinux2
Ben Gertzfield
che at debian.org
Fri Nov 12 18:58:17 EST 1999
>>>>> "Jean-Bernard" == Jean-Bernard ADDOR <jbaddor at sca.uqam.ca> writes:
Jean-Bernard> Hey ! I try to make some documentation strings in
Jean-Bernard> my code but then I use them the result is very
Jean-Bernard> difficult to read:
*snip*
Jean-Bernard> How could I make it print return instead of \012?
Try:
print class.method.__doc__
instead of just 'class.method.__doc__'. :)
--
Brought to you by the letters A and L and the number 11.
"Wuzzle means to mix."
Debian GNU/Linux maintainer of Gimp and GTK+ -- http://www.debian.org/
More information about the Python-list
mailing list