Chris Angelico wrote:

> Thank you; both of these have now been incorporated into the document.

Thanks!  Just a small comment.  You wrote in the PEP draft:

> # Name bindings inside list comprehensions usually won't leak
> ...
> # But occasionally they will!

I don't understand what you mean here.  If the (y as x) syntax is to
have, as you say, "the exact same semantics as regular assignment", then
assignments inside list comprehensions would always "leak".  But this is
a good thing, because this is consistent with how Python behaves.

Christoph
_______________________________________________
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