[Numpy-discussion] in the NA discussion, what can we agree on?
Fri Nov 4 18:29:56 CDT 2011
04.11.2011 23:29, Pauli Virtanen kirjoitti:
> As the definition concerns only what happens on assignment, it does not
> have problems with commutativity.
This is of course then not really true in a wider sense, as an example
from "T J" shows:
a = 1
a += IGNORE(3)
# -> a := a + IGNORE(3)
# -> a := IGNORE(4)
# -> a == IGNORE(1)
which is different from
a = 1 + IGNORE(3)
# -> a == IGNORE(4)
Damn, it seemed so good. Probably anything expect destructive assignment
leads to problems like this with propagating special values.
More information about the NumPy-Discussion