Detupleize a tuple for argument list

Marco Wahl mw at visenso.de
Wed Jul 5 08:38:15 EDT 2006


> Marco Wahl enlightened us with:
> > >>> foo(t)
> >  Traceback (most recent call last):
> >    File "<stdin>", line 1, in ?
> >  TypeError: foo() takes exactly 2 arguments (1 given)
> 
> Call foo(*t)

Thank you very much Luke Plant, Steven D'Aprano and Sybren Stuvel.

This was exactly what I was looking for.  I'm happy now.  ;-)
-- 
Marco Wahl
http://visenso.com



More information about the Python-list mailing list