a = b = 1 just syntactic sugar?
Sean Legassick
sean at datamage.net
Fri Jun 6 22:06:08 EDT 2003
In message <l1d6hqkbx3.fsf at budvar.future-i.net>, Ed Avis
<ed at membled.com> writes
> def f:
> print 'hello'
> x = f
>
>f is an expression, yet it 'contains' a statement. Couldn't the same
>kind of containment be allowed for lambdas?
f might well be an expression, but surely the 'def f:' is a statement
with an accompanying suite. It's a kind of assignment statement.
--
Sean K. Legassick
sean at datamage.net
informage - http://informage.net - mouthing off from the fairest cape
More information about the Python-list
mailing list