[NumPy-Tickets] [NumPy] #1904: ndarray derived classes: inconsistent return type of min()
NumPy Trac
numpy-tickets@scipy....
Tue Jul 12 12:05:23 CDT 2011
#1904: ndarray derived classes: inconsistent return type of min()
------------------------+---------------------------------------------------
Reporter: cstraehl | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: numpy.core | Version: 1.6.0
Keywords: |
------------------------+---------------------------------------------------
import numpy
class Test(numpy.ndarray):
def __init__(self, *args):
numpy.ndarray.__init__(self,*args)
a1 = numpy.ndarray((1,))
a2 = Test((1,))
# we expect the type to be the same
# because we did not overload the min() function...
assert type(a1) == type(a2), "inconsitent type"
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1904>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list