Is this what you're looking for? class baseClass: def __init__(self): def fromfile(self, fileObj, byteOrder=None): def getVR(self): def getGroup(self): def getElement(self): def getSize(self): def getData(self):
class implicitClass(baseClass): def __init__(self): baseClass.__init__(self) def isIVR(self): #This is a class private method. class explicitClass(baseClass): def __init__(self): baseClass.__init__(self) KraftDiner wrote: > I have two classes: > > class implicitClass: > def __init__(self): > def isIVR(self): #This is a class private method. > def fromfile(self, fileObj, byteOrder): > def getVR(self): > def getGroup(self): > def getElement(self): > def getSize(self): > def getData(self): > > class explicitClass: > def __init__(self): > def fromfile(self, fileObj): > def getVR(self): > def getGroup(self): > def getElement(self): > def getSize(self): > def getData(self): > > > As you can see the interface is almost identical. > > How can I define a base class that will abstract > the type such that I don't know if its really and inplicit > or explicit object? -- http://mail.python.org/mailman/listinfo/python-list