[Python-ideas] RFC: bytestring as a str representation [was: a new bytestring type?]
Ethan Furman
ethan at stoneleaf.us
Tue Jan 7 21:07:15 CET 2014
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'.
I don't think of a series of bytes as a container anymore than I think of a series of characters as a container.
--
~Ethan~
More information about the Python-ideas
mailing list