I have a class
class MyClass(MyBaseC lass)
def __init__(self)
super(self.__cl ass__, self).__init__( )
self.type = MyClassType
return self
It has a few methods...
I have another class and the only difference is the __init__ method..
I tried this:
class MySpecialClass( MyClass)
def __init__(self)
super(self.__cl ass__, self).__init__( )
self.type = MySpecialClassT ype # This is the only line
that's different between the two classes.
return self
At runtime I get an error:
RuntimeError: maximum recursion depth exceeded
What have I done wrong?
class MyClass(MyBaseC lass)
def __init__(self)
super(self.__cl ass__, self).__init__( )
self.type = MyClassType
return self
It has a few methods...
I have another class and the only difference is the __init__ method..
I tried this:
class MySpecialClass( MyClass)
def __init__(self)
super(self.__cl ass__, self).__init__( )
self.type = MySpecialClassT ype # This is the only line
that's different between the two classes.
return self
At runtime I get an error:
RuntimeError: maximum recursion depth exceeded
What have I done wrong?
Comment