[Python-Dev] PEP 572: Assignment Expressions

Chris Angelico rosuav at gmail.com
Sun Apr 22 05:32:42 EDT 2018


On Sun, Apr 22, 2018 at 7:29 PM, Christoph Groth
<christoph at grothesque.org> wrote:
> If I had to choose between the above and ":= binding expressions", I
> guess I would tend to prefer the latter because they are sufficient,
> nicer looking and offer less potential for trouble.  But I think that it
> is worth to fully discuss the above idea as well.  IMHO it should be at
> least briefly mentioned in the "rejected ideas" of PEP 572, because it
> is arguably the most self-evident way to introduce name-binding
> expressions into the language.

It's in the FAQ.

ChrisA


More information about the Python-Dev mailing list