__repr__ = __str__
[EMAIL PROTECTED] wrote]
I don't know if that's a good practice.
I've seen it in a couple places, and it's pretty explicit what it's doing.
__repr__ is used as a fallback for __str__, so just defining __repr__ (and leaving out __str__) is enough.
-- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list