How to convert a list/tuple into an function argument list easily?
Erik Max Francis
max at alcyone.com
Sun Dec 15 22:10:04 EST 2002
Neal Norwitz wrote:
> val = struct.pack('<LHH', *record)
>
> works in Python 2.0 or 2.1 and above. I forget when it was added.
It was added in 2.0.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ I do this for the love of music / Not for the glitter and gold
\__/ India Arie
EmPy / http://www.alcyone.com/pyos/empy/
A templating system for Python.
More information about the Python-list
mailing list