En Mon, 06 Oct 2008 22:52:29 -0300, Tim Chase <[EMAIL PROTECTED]> escribió:

   __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

Reply via email to