[Python-ideas] RFC: bytestring as a str representation [was: a new bytestring type?]

Ethan Furman ethan at stoneleaf.us
Mon Jan 6 23:59:11 CET 2014


On 01/06/2014 10:37 AM, Stephen J. Turnbull wrote:
>
> Comments?

Having a 7-bit str variant is definitely an interesting idea, but it wouldn't help me and is probably insufficient for 
network protocols as well.  The binary data I deal with occupies the full 0-255 range, some of which is actually encoded 
text (and I decode it before passing it back to the user), some of which is simple binary data, and some of which is 
simple ASCII (metadata about fields and whatnot).

--
~Ethan~


More information about the Python-ideas mailing list