3 ms·
Python Assignment Expressions (PEP 572)
- olskool 8y agoA use case not mentioned: print (x := <something>)
- metalliqaz 8y agoSo both "=" and ":=" will be python assignment operators, with the only difference being used in statements vs expressions. Seems... strange.