Storing nothing in a dictionary and passing it to a function

Maric Michaud maric at aristote.info
Mon Jun 5 13:40:24 EDT 2006


Le Lundi 05 Juin 2006 19:18, 63q2o4i02 at sneakemail.com a écrit :
> Any thoughts?

In [24]: a, b = (lambda  : 'works like this'), (lambda a, b : (a,b))

In [25]: a(*())
Out[25]: 'works like this'

In [26]: b(4,3)
Out[26]: (4, 3)


-- 
_____________

Maric Michaud
_____________

Aristote - www.aristote.info
3 place des tapis
69004 Lyon
Tel: +33 426 880 097



More information about the Python-list mailing list