[Python-ideas] PEP 572: Statement-Local Name Bindings

Kirill Balunov kirillbalunov at gmail.com
Wed Feb 28 13:03:50 EST 2018


The PEP says:


> Omitting the parentheses from this PEP's proposed syntax introduces many
> syntactic ambiguities.
>

and:

As the name's scope extends to the full current statement, even a block
> statement, this can be used to good effect in the header of an if or while
>  statement



Will the `from ... import ... as ... statement be a special case, because
currently the following form is valid:

from math import (tau as two_pi)

With kind regards,
-gdg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180228/9e14ef12/attachment.html>


More information about the Python-ideas mailing list