How to represent a sequence of raw bytes

James Mills prologic at shortcircuit.net.au
Mon Dec 22 03:35:30 EST 2008


On Mon, Dec 22, 2008 at 4:56 PM, Steven Woody <narkewoody at gmail.com> wrote:
> I thing "\x11\x22\x33" in python is not the {0x11, 0x22, 0x33} in C.
> Since, a string in python is immutable, I can _not_ do something like:
>  b[1] = "\x55".
>
> And, how about char buf[200] in my original question?  The intension
> is to allocate 200 undefined bytes in memory. Thanks.

Steven, one piece of advice.

Python is not C.

Thank.

cheers
James



More information about the Python-list mailing list