[Python-3000] Fwd: UPDATED: PEP 3138- String representation in Python 3000

Guido van Rossum guido at python.org
Sun Jun 1 03:50:40 CEST 2008


On Sat, May 31, 2008 at 2:33 PM, Adam Olsen <rhamph at gmail.com> wrote:
> I think the reason why strict/backslashreplace (respectively) work
> well is that you can print a unicode string to stdout, have it fail
> (encoding can't handle it), then get an exception printed to stderr
> with the string escaped.
>
> Making stderr stricter would make it unable to print the string and
> making stdout less strict would let the error pass silently (printing
> potential garbage instead).

You've got it exactly right, better than I said it.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list