[Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5

"Martin v. Löwis" martin at v.loewis.de
Tue Jan 7 16:29:41 CET 2014

Am 07.01.14 15:08, schrieb Daniel Holth:
> Isn't it true that if you have bytes > 127 or surrogate escapes then
> encoding to latin1 is no longer as fast as memcpy?

You mean "decoding from latin1" (i.e. bytes to string)?

No, the opposite is true. It couldn't use memcpy before, but does now
(see _PyUnicode_FromUCS1).


More information about the Python-Dev mailing list