Conversion from tuple to argument list?
Bruce Edge
bedge at troikanetworks.com
Tue Nov 20 17:30:43 EST 2001
In <LEAK7.2203$px5.169125 at newsfeed.slurp.net>, Bruce Edge wrote:
> Forgive the stupid question, probably a C programmer mindset issue here.
>
> I have a tuple of data items say (0,1,2) I want to pass to struct.pack,
> which takes:
> pack (fmt, v1, v2, ...)
>
> How can I pass my tuple to pack as its arg2,3,4,...
>
> -TIA, Bruce.
Never mind, just found apply.
More information about the Python-list
mailing list