lambdas (lambda x: printx)

Michal (wytnijto) misza at
Wed Dec 3 21:43:02 CET 2003


Today I started with python and I cannot understand why expresion
lambda x: print x
returns syntax error (but for example lambda x: sys.stdio.write(x) does not)
First I fought the reason is scopeing, but it shouldnt return syntax error.


More information about the Python-list mailing list