text_combined: atsuo ishimoto dsuvthimgembookorg sat may 3 2008 733 terry reedy wrote printsencodeunicode_escape fine especially whatever added repr doc dont recommend reprobjencodeunicode_escape backslash characters string escaped codec printrepr printstrreprencodeunicodeescape ascii ascii codec backslashreplace error handler works better printstrreprencodeascii backslashreplace ascii looks complicated get result python 2x originally proposed allow printrepr encodingascii errorsbackslashreplace get result hard implement requirement asciirepr popular enough provide builtin function like def repr_asciiobj return strreprobjencodeascii backslashreplace ascii 2to3 use repr_ascii better compatibility new builtin function desirable document good enough _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom fri 08 aug 2008 140932 0900 python3000 displaying strings containing unicode escapes