Using multiple "*"-style arguments

Dave Opstad dave.opstad at
Fri Jun 18 16:41:00 CEST 2004

In article <C2DAc.2081$OB3.55 at>,
 "Andrew Koenig" <ark at> wrote:

> Does this do what you want?
>     x = struct.pack((">HhhhhhhHHHL", i, *(bounds + b[0:2] + b[6:9] +
> [len(s)]))

Wait, ignore my previous reply. Yes, I think this does work, and it fits 
within the Python idiom I was seeking.


More information about the Python-list mailing list