[Python-3000] PEP 3138- String representation in Python 3000

Oleg Broytmann phd at phd.pp.ru
Tue May 27 01:34:32 CEST 2008


On Mon, May 26, 2008 at 07:26:56PM -0400, Jim Jewett wrote:
> Summary:
> 
> The only reason for this change is that __repr__ gets used when
> __str__ *should* be used instead.

   No, it is not the only reason. The other reason is that repr() is used in
many different places where we want readable output.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-3000 mailing list