a = b = 1 just syntactic sugar?
Steven Taschuk
staschuk at telusplanet.net
Mon Jun 9 12:41:03 EDT 2003
Quoth Martin v. Löwis:
[...]
> So what is the rationale for wanting that change, again? [...]
> assignment_stmt: supported, but useless
> You can only assign to local variables
> so a lambda with a assignment_stmt inside
> would have no effect
[...]
> del_stmt: supported, but useless
> you can only del local variables inside the lambda
Nit: attributes and subscripts. Lambdas such as
lambda x: obj.attr = x
lambda x: del seq[x]
might be useful.
--
Steven Taschuk w_w
staschuk at telusplanet.net ,-= U
1 1
More information about the Python-list
mailing list