[Python-Dev] Re: adding a bytes sequence type to Python (original) (raw)
Bob Ippolito bob at redivi.com
Tue Aug 17 23🔞38 CEST 2004
- Previous message: [Python-Dev] Re: adding a bytes sequence type to Python
- Next message: [Python-Dev] Re: adding a bytes sequence type to Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Aug 17, 2004, at 5:11 PM, Martin v. Löwis wrote:
Bob Ippolito wrote:
How would you embed raw bytes if the string was unicode? The most direct notation would be bytes("delimited packet\x00") However, people might not understand what is happening, and Guido doesn't like it if the bytes are >127.
I guess that was a bad example, what if the delimiter was \xff? I know that map(ord, u'delimited packet\xff') would get correct results.. but I don't think I like that either.
-bob
- Previous message: [Python-Dev] Re: adding a bytes sequence type to Python
- Next message: [Python-Dev] Re: adding a bytes sequence type to Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]