[Python-3000] PEP 3138- String representation in Python 3000 (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed May 28 03:45:00 CEST 2008
- Previous message: [Python-3000] str(containter) calls repr(item)
- Next message: [Python-3000] PEP 3138- String representation in Python 3000
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] str(containter) calls repr(item)
- Next message: [Python-3000] PEP 3138- String representation in Python 3000
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]