Uwe Mayer ha scritto: > Friday 29 April 2005 00:06 am Paul Rubin wrote: > >>Closest you can come is: >> >> f = lambda: sys.stdout.write("hello world\n") > > > Ah. :)) > Why does the "print" statement return a syntax error here? > ^^^^^^^^^ > this is the reason :) You can't have statements into an expression