[Python-ideas] Stop displaying elements of bytes objects as printable ASCII characters in CPython 3

Ethan Furman ethan at stoneleaf.us
Mon Sep 15 16:20:26 CEST 2014


On 09/11/2014 12:30 AM, Steven D'Aprano wrote:
>
> Until your post just now, there has probably never been anyone anywhere
> who wanted to display b'Abc' as "41:62:63", and there probably never
> will be again. For such a specialised use-case, it's perfectly justified
> to reject a request for such a colon-delimited hex function with "not
> every one-liner...".

Make that two.  :)

Space or colon delimited is far easier to read than no separator, or the noise of a \x separator.

--
~Ethan~


More information about the Python-ideas mailing list