[Python-ideas] Allow lambda decorators
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Feb 10 06:02:27 CET 2009
spir wrote:
> For instance, using a declaration, it may be possible to write the following loop (I do not pretend 'local' to be a good lexical choice ;-):
>
> funcs = []
> for item in seq:
> local prod # this name only is iteration specific
> prod = product(item) # ==> one prod per item
My conception of the 'new' idea is that you would be able to
use it with any assignment to a bare name, so you could write
for item in seq:
new prod = product(item)
...
--
Greg
More information about the Python-ideas
mailing list