I am seeing some really strange behavior when I try to pass an ndarray subclass and out=None to numpy's ufuncs. This example will reproduce the problem with svn numpy, the first print statement yields 1 as expected, the second yields  "<type 'builtin_function_or_method'>" and the third yields a segmentation fault:<br>
<br>import numpy as np<br><br>class MyArray(np.ndarray):<br><br>    __array_priority__ = 20<br><br>    def __new__(cls):<br>        return np.asarray(1).view(cls).copy()<br><br>    def __repr__(self):<br>        return 'my_array'<br>
<br>    __str__ = __repr__<br><br>    def __mul__(self, other):<br>        return super(MyArray, self).__mul__(other)<br><br>    def __rmul__(self, other):<br>        return super(MyArray, self).__rmul__(other)<br><br>mine = MyArray()<br>
print np.multiply(1, 1, None)<br>x = np.multiply(mine, mine, None)<br>print type(x)<br>print x<br><br>Darren<br>