top | item 16938220 Python Assignment Expressions (PEP 572) 10 points| stsewd | 7 years ago |python.org 2 comments order hn newest [+] [-] metalliqaz|7 years ago|reply So both "=" and ":=" will be python assignment operators, with the only difference being used in statements vs expressions.Seems... strange. [+] [-] olskool|7 years ago|reply A use case not mentioned:print (x := <something>)
[+] [-] metalliqaz|7 years ago|reply So both "=" and ":=" will be python assignment operators, with the only difference being used in statements vs expressions.Seems... strange.
[+] [-] metalliqaz|7 years ago|reply
Seems... strange.
[+] [-] olskool|7 years ago|reply
print (x := <something>)