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

Greg Ewing greg.ewing at canterbury.ac.nz
Wed May 28 03:45:00 CEST 2008


Jim Jewett wrote:

> PEP 3138 says that repr should start printing unicode glyphs.
> 
> I say that repr should (insetad) start recognizing when it was called
> in place of __str__, and should revert back to __str__ when it
> recurses down to the next level.

But we *don't* all agree that the only case where we want
unicode glyphs is when we call str().

I can understand a Japanese user wanting to see his text in
Japanese when he uses repr() explicitly to debug his program.

-- 
Greg


More information about the Python-3000 mailing list