gbfowler
Re:PEP 572: Python assignment expressions has been accepted
on Tuesday July 03, 2018 @05:04AM (#17448582)
It is not syntactic sugar, "x := 10" is an assignment expression in contrast with "x = 10", which is a statement.
Hence the former can be used in contexts like "if x := 10: pass", which is the whole point of the PEP.