5 ms·
It appears to me that there is actually no such operator in Python; cf. http://docs.python.org/reference/simple_stmts.html#augmented-assignment-statements http:
by andreasvc 14y ago
It appears to me that there is actually no such operator in Python; cf. http://docs.python.org/reference/simple_stmts.html#augmented-assignment-statements http://docs.python.org/reference/simple_stmts.html#augmented...
Superficially it looks like an operator, but I suspect that's merely because of whitespace freedom; i.e., a, = [0] is equivalent to a,=[0] and a ,= [0].
- jgeralnik 14y agoI assume it was a joke; a pop culture reference to this stack overflow question: http://stackoverflow.com/questions/1642028/what-is-the-name-of-this-operator http://stackoverflow.com/questions/1642028/what-is-the-name-...
- lucian1900 14y agoSure it is! And in Python 3 there's the ,_*= operator, similar to lisp's car: varname ,_*= [1, 2, 3] # varname == 1
- andreasvc 14y agoHN isn't the place for facetiousness.
- lucian1900 14y agoApparently it isn't the place for humour either.