Array of dict or lists or ....?

Hrvoje Niksic hniksic at xemacs.org
Tue Oct 7 03:45:39 EDT 2008


Tim Chase <python.list at tim.thechases.com> writes:

>>>    __repr__ = __str__
>>
>> 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.

But what's the point?  Simply define __repr__, and both repr and str
will pick it up.



More information about the Python-list mailing list