[Numpy-discussion] in the NA discussion, what can we agree on?

Pauli Virtanen pav at iki.fi
Fri Nov 4 19:29:56 EDT 2011


04.11.2011 23:29, Pauli Virtanen kirjoitti:
[clip]
> 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.

-- 
Pauli Virtanen




More information about the NumPy-Discussion mailing list