Why doesn't this work?
lambda: print "x"
Is this not a single statement, or is it something else? The documentation seems a little sparse on what is allowed in a lambda...
In cases where I am using this for simple stubbing out I use this:
fn = lambda x: sys.stdout.write(str(x) + "\n")
which works perfectly.