[Python-Dev] PEP 572: Assignment Expressions

Mike Miller python-dev at mgmiller.net
Tue Apr 24 15:54:14 EDT 2018


On 2018-04-23 15:36, Guido van Rossum wrote:
> - the semantics are subtly different from all other uses of 'as' in Python; I'd 
> like to reserve 'as' for "not a plain assignment"

It's conceptually similar to "import as", no?  The keyword "as" is a fuzzy yet 
intuitive concept already.

Also, these "binding expressions" are not exactly plain assignment, as it has 
been known.

-Mike


More information about the Python-Dev mailing list