FAQ: __str__ vs __repr__
simon.brunning at gmail.com
Tue Jun 21 11:35:08 CEST 2005
On 6/15/05, Peter Hansen <peter at engcorp.com> wrote:
> __repr__ shouldn't be anything, if you don't have an actual need for it.
> Neither should __str__.
Oh, I don't know. __str__ is so frequently useful in debugging and
logging that I always try and do something useful with it.
simon at brunningonline.net,
More information about the Python-list