Strange __str__ behavior

Tim Peters tim.one at home.com
Fri Nov 9 23:35:39 CET 2001


> I am defining a class w/ method __str__. If I put a print statement
> inside __str__, and if I then use the print statement to display an
> instance of the class, I get an extra space in the output.

Please see:

<http://sf.net/tracker/index.php?func=detail&aid=480215&group_id=5470&atid=1
05470>





More information about the Python-list mailing list