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

Ethan Furman ethan at stoneleaf.us
Sun Jan 12 23:40:52 CET 2014


On 01/12/2014 02:31 PM, Stephen J. Turnbull wrote:

This corrupts binaryimagedata. Each byte > 127 will be replaced by two bytes. In the second case, you can use latin1 to encode, it it gives you what you want. This kind of subtlety is precisely why MAL warned about use of latin1 to smuggle bytes.

And why I've been fighting Steven D'Aprano on it.

-- Ethan



More information about the Python-Dev mailing list