lambdas (lambda x: printx)

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


Hi,

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.

misza






More information about the Python-list mailing list