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()).

--Guido van Rossum (
Python-ideas mailing list
Code of Conduct:

Reply via email to