Re: writeable buffer and struct.pack_into and struct.unpck_from

2008-09-21 Thread John Machin
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\

Re: writeable buffer and struct.pack_into and struct.unpck_from

2008-09-20 Thread Tzury Bar Yochay
Thanks Gabriel, I was missing the information how to create a writable buffer. -- http://mail.python.org/mailman/listinfo/python-list

Re: writeable buffer and struct.pack_into and struct.unpck_from

2008-09-20 Thread Aaron "Castironpi" Brady
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

Re: writeable buffer and struct.pack_into and struct.unpck_from

2008-09-20 Thread Gabriel Genellina
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,