On 2018-04-13 16:13, Guido van Rossum wrote:
Regarding the precedence of :=, at this point the only acceptable
outcome for me is one where at the statement level, := and = can be used
interchangeably and will have the same meaning (except probably we
wouldn't allow combining both in a chained assignment). Because then we
can say "and you can use assignment in expressions too, except there you
must use := because = would be too easily confused with ==".
Ideally this would allow all forms of = to be replaced with :=, even
extended structure unpacking (a, b, *c := foo()).
+1
It would be confusing to have 2 forms of assignment which look alike but
with different precedences.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/