> [Tim]
> (inside a synthetic function created to
> implement a listcomp/genexp, names bound by "=" are local; names bound
> by ":=" are nonlocal; names bound by both are "who cares?"-
> compiler-time error would be fine by me, or the first person to show a
> real use case wins).

Wait, you can't use = in a listcomp, right ? Or are you talking about
the implementation hidden to the casual user ?

I thought letting := bind to the surrounding scope was fine basically
because it's currently not possible, so therefore there would be no
syntactic ambiguity, and it'd actually do what people would expect.

Jacco
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to