Strange __str__ behavior
brucehapman at hotmail.com
brucehapman at hotmail.com
Fri Nov 9 22:13:13 EST 2001
"Tim Peters" <tim.one at home.com> wrote in message news:<mailman.1005345373.25391.python-list at python.org>...
> > 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>
Thanks Tim!
b.
More information about the Python-list
mailing list