__doc__ print \012 on Debian Gnulinux2

Jean-Bernard ADDOR jbaddor at sca.uqam.ca
Sat Nov 13 00:51:39 CET 1999


Hey !

I try to make some documentation strings in my code but then I use them
the result is very difficult to read:

kili$  /usr/bin/python
Python 1.5.1 (#1, Dec 17 1998, 20:58:15)  [GCC 2.7.2.3] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> xtGgrads.__doc__
'Apply x^t G grad sigma equation.\012\012    xtGgrads(G, (d0, d1),
(o0,o1)=(None,None), (s0, s1)=(1,1))\012    G GSI generator matrix\012
(d0, d1) sigma derivatives\012    (o0,o1) origin coordinate, center on
biggest side if unspecified\012    (s0, s1) distance between two pixel\012
'
How could I make it print return instead of \012?


	Jean-Bernard






More information about the Python-list mailing list