of course I take one more look through the docs after I send the origonal message and stumble upon it right away. <br><a href="http://www.python.org/doc/2.5/tut/node6.html#SECTION006740000000000000000">http://www.python.org/doc/2.5/tut/node6.html#SECTION006740000000000000000
</a><br><br><br><div><span class="gmail_quote">On 7/29/07, <b class="gmail_sendername">bill nieuwendorp</b> &lt;<a href="mailto:slow67@gmail.com">slow67@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
when ever I need to use the struct module <br>I always store my values in a list or a dict, then<br>I do something like the code below <br><br>import struct<br>list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]<br>length =len(list)<br>

struct.pack(&quot;&gt;%di&quot;%(length), *[i for i in list])<br><br>now I can not remember where I came up with that,<br>I thought I read it in the python docs somewhere <br>but I can not find any mention of it now.<br>
<br>
<br><br>
</blockquote></div><br>