Uwe Mayer <[EMAIL PROTECTED]> writes:
> >>> f = {print "hello world"}
> >>> f()
> hello world

> in Pyton?  Lambda expressions don't work here.

Closest you can come is:

   f = lambda: sys.stdout.write("hello world\n")

Of course if you're trying to capture the function in a named variable
like f, just use a def statement.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to