Character set woes with binary data
Lenard Lindstrom
len-l at telus.net
Sun Apr 1 17:58:58 EDT 2007
John Nagle wrote:
> Michael B. Trausch wrote:
>> In short: How do I create a string that contains raw binary content
>> without Python caring? Is that possible?
>
> Given where we're now at with strings in Python, Python should
> really have a "byte" type and a way to deal with arrays of bytes,
> independent of the string operators.
>
> Efficient handling of lists of bytes would do it.
>
> John Nagle
array.array or ctypes.create_string_buffer.
Lenard Lindstrom
More information about the Python-list
mailing list