anonymous function objects?



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

.



Relevant Pages