[Python-Dev] PEP 572: Assignment Expressions (original) (raw)

Ethan Furman ethan at stoneleaf.us
Tue Apr 24 16:19:04 EDT 2018


On 04/24/2018 12:59 PM, Chris Angelico wrote:

On Wed, Apr 25, 2018 at 5:54 AM, Mike Miller wrote:

Also, these "binding expressions" are not exactly plain assignment, as it has been known. Aside from the restriction to binding only to a simple name, and the fact that they're also an expression with the same value, how are they not the same as plain assignment? Any discrepancies should be considered bugs.

They only bind to simple names, and they can occur in expressions. ;)

-- Ethan



More information about the Python-Dev mailing list