STINNER Victor added the comment:

"If a byte sequence can be decoded as a surrogate character and
*errors* is not ``"strict"``, then the byte sequence is escaped using
the ``"surrogateescape"`` error handler instead of being decoded."

I don't understand this sentence but it sounds to be wrong. The
"surrogateescape" is only used if errors="surrogateescape"...

If errors is set and is different to "strict" and "surrogateescape",
an error is raised.

2012/11/28 Andrew Svetlov <>:
> Andrew Svetlov added the comment:
> Really I don't know what's better. Victor, what do you think?
> ----------
> _______________________________________
> Python tracker <>
> <>
> _______________________________________


Python tracker <>
Python-bugs-list mailing list

Reply via email to