[Python-ideas] PEP 572: about the operator precedence of :=

Terry Reedy tjreedy at udel.edu
Thu May 10 03:32:32 EDT 2018

On 5/9/2018 11:33 PM, Guido van Rossum wrote:

> I now think that the best way out is to rule `:=` in the top level 
> expression of an expression statement completely 

I would like to be able to interactively enter

 >>> a: = f(2,4)

to have 'a' echoed as well as bound.

Terry Jan Reedy

More information about the Python-ideas mailing list