Storing nothing in a dictionary and passing it to a function

Maric Michaud maric at aristote.info
Mon Jun 5 13:42:25 EDT 2006


Le Lundi 05 Juin 2006 19:40, Maric Michaud a écrit :
> Le Lundi 05 Juin 2006 19:18, 63q2o4i02 at sneakemail.com a écrit :
> > Any thoughts?
>
oups wanted to wirte this :

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

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

In [29]: b(*())
Out[29]: ()

-- 
_____________

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