Strange __str__ behavior

Tim Peters at
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:


More information about the Python-list mailing list