anonymous function objects?

Uwe Mayer merkosh at hadiko.de
Thu Apr 28 08:24:30 EDT 2005


Is it possible to specify anonymous functions, something like:

>>> f = {print "hello world"}
>>> f()
hello world


in Pyton?
Lambda expressions don't work here.

Thanks,
Uwe
        



More information about the Python-list mailing list