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

Antoine Pitrou solipsis at pitrou.net
Tue Jan 7 21:08:24 CET 2014


On Tue, 07 Jan 2014 12:07:15 -0800
Ethan Furman <ethan at stoneleaf.us> wrote:
> On 01/07/2014 11:59 AM, Antoine Pitrou wrote:
> > On Tue, 07 Jan 2014 10:57:04 -0800
> > Ethan Furman <ethan at stoneleaf.us> wrote:
> >>
> >> Nothing at all, and that part works fine.
> >>
> >> The trouble (for me) comes in when I try to use single bytes,
> >> either when creating or extracting.
> >
> > Hmm... aren't you exagerating the trouble? It's not very difficult to
> > work with single bytes in Python 3...
> 
> No, I'm not.  I don't think of b'C' as the integer 67 any more than I
> think of the number 256 as the bytes b'\x01\xFF'. 

Ethan, can you please show a practical issue you're having?




More information about the Python-ideas mailing list