ole-usenet-spam at gmx.net
Fri Apr 24 16:04:00 CEST 2009
I am trying to initialize a class inherited from numpy.ndarray:
from numpy import ndarray
def __init__(self, mydata):
self.mydata = mydata
When I now call the constructor of da:
I get the message:
ValueError: sequence too large; must be smaller than 32
which I do not understand. This message is generated by the
constructor of ndarray, but the ndarray constructor
(ndarray.__init__()) has only "0" as argument, and calling
"ndarray(0)" directly works perfect.
In the manual I found that the constructor of a superclass is not
called implicitely, so there should be no other call to
ndarray.__init__() the the one in my __init__ method.
I am now confused on where does the call to ndarray come from. How do
I correct that?
More information about the Python-list