[Numpy-discussion] Scalar-ndarray arguments passed to not_equal

Friedrich Romstedt friedrichromstedt@gmail....
Thu Feb 11 14:32:53 CST 2010


> Hey! You broke my numpy  :)
>
>>> def addbug(x, y):
>   ...:     return x - y
>   ...:
>>> old_funcs = np.set_numeric_ops(add=addbug)
>>> np.array([1]) + np.array([1])
>   array([0])
Yea, that's what I meant.  Great.

:-) :-)

Friedrich


More information about the NumPy-Discussion mailing list