Array of dict or lists or ....?
gagsl-py2 at yahoo.com.ar
Tue Oct 7 09:15:35 CEST 2008
En Mon, 06 Oct 2008 22:52:29 -0300, Tim Chase
<python.list at tim.thechases.com> escribió:
>>> __repr__ = __str__
[bearophileHUGS at lycos.com 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
__repr__ is used as a fallback for __str__, so just defining __repr__ (and
leaving out __str__) is enough.
More information about the Python-list