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

Chris Angelico rosuav at gmail.com
Fri Mar 23 22:38:02 EDT 2018


On Sat, Mar 24, 2018 at 3:58 AM, Guido van Rossum <guido at python.org> wrote:
> I also think it's fair to at least reconsider adding inline assignment, with
> the "traditional" semantics (possibly with mandatory parentheses). This
> would be easier to learn and understand for people who are familiar with it
> from other languages (C++, Java, JavaScript).
>
> On Fri, Mar 23, 2018 at 9:34 AM, Christoph Groth <christoph at grothesque.org>
> wrote:
>> But wouldn't it be a good alternative to PEP 572 to *add* an assignment
>> operator that is an expression to Python, and is distinct from "=", for
>> example ":="?

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

ChrisA


More information about the Python-ideas mailing list