Strange __str__ behavior

brucehapman at brucehapman at
Sat Nov 10 04:13:13 CET 2001

"Tim Peters" < at> wrote in message news:<mailman.1005345373.25391.python-list at>...
> > 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:
> <
> 05470>

Thanks Tim!

More information about the Python-list mailing list