On Sep 21, 3:16 pm, Tzury Bar Yochay <[EMAIL PROTECTED]> wrote:
> Thanks Gabriel,
> I was missing the information how to create a writable buffer.
array.array objects also have the writable buffer nature:
>>> import array
>>> b = array.array('c', '\0' * 10)
>>> b
array('c', '\x00\x00\x00\x00\x00\
Thanks Gabriel,
I was missing the information how to create a writable buffer.
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 20, 6:42 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Sat, 20 Sep 2008 15:45:48 -0300, Tzury Bar Yochay
> <[EMAIL PROTECTED]> escribió:
>
> > I can't find in the documentation the way to use these two functions.
>
> > can someone share a simple code that utilize these two functi
En Sat, 20 Sep 2008 15:45:48 -0300, Tzury Bar Yochay
<[EMAIL PROTECTED]> escribió:
I can't find in the documentation the way to use these two functions.
can someone share a simple code that utilize these two functions?
struct.pack_into is intended to "fill" a buffer you got from somewhere,