[Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5
Stephen J. Turnbull
stephen at xemacs.org
Sun Jan 12 21:39:14 CET 2014
Daniel Holth writes:
> -1 on adding more surrogateesapes by default. It's a pain to track
> down where the encoding errors came from.
What do you mean "by default"? It was quite explicit in the code I
posted, and it's the only reasonable thing to do with "text data
without known (but ASCII compatible) encoding or multiple different
encodings in a single data chunk". If you leave it as bytes, it will
barf as soon as you try to mix it with text even if it is pure ASCII!
More information about the Python-Dev