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

Antoine Pitrou solipsis at pitrou.net
Tue Jan 7 22:48:12 CET 2014


On Tue, 07 Jan 2014 12:49:11 -0800
Ethan Furman <ethan at stoneleaf.us> wrote:
> On 01/07/2014 12:08 PM, Antoine Pitrou wrote:
> > 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?
> 
> Seriously?  You've already agreed with me on my first two points at the beginning of this thread.  It's safe to assume I 
> was having practical issues with those points.

Well, I agree with those points, but I still think they're minor, and
not very hard to workaround. Hence my comment about "exagerating the
trouble".

Regards

Antoine.




More information about the Python-ideas mailing list