struct unpack to pre-allocated array?

Rich Henry againstmethod at gmail.com
Fri Jan 9 16:11:59 CET 2009


Is there any way to struct.unpack or struct.unpack_from into an existing
array.array or similar structure? I am unpacking file data in a loop and i
was hoping to find something that performs better than simply unpacking into
a new tuple each iteration.

Thanks in advance,
Rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090109/23175243/attachment.html>


More information about the Python-list mailing list