a = b = 1 just syntactic sugar?

Ed Avis ed at membled.com
Sat Jun 7 13:08:37 CEST 2003

"Fredrik Lundh" <fredrik at pythonware.com> writes:

>>Still, I think that parenthesizing where necessary would not be

>>>> (print x)
>  File "<stdin>", line 1
>    (print x)

What I had in mind was

   map((lambda x: print 'value', x), some_list)

Of course, in most cases the brackets around the whole
lambda-definition would not be needed.

Ed Avis <ed at membled.com>

More information about the Python-list mailing list