C
cyberirakli
Hey guys,
I'm trying to understand how is working base class and derived class.
So, I have to files baseClass.py and derivedClass.py.
baseClass.py :def bFunction(self):
print "We are in a base class"
derivedClass.py:reload(baseClassMod)
class derivedClass(baseClassMod):
def dFunction(self):
print "We are in a derived Class"
buwhen I'm trying to run derivedClass.py I get this error :
TypeError: Error when calling the metaclass bases
module.__init__() takes at most 2 arguments (3 given)
Interesting thing is that if I run baseClass.py and then run :def dFunction(self):
print "We are in a derived Class"
It works fin
I'm trying to understand how is working base class and derived class.
So, I have to files baseClass.py and derivedClass.py.
baseClass.py :def bFunction(self):
print "We are in a base class"
derivedClass.py:reload(baseClassMod)
class derivedClass(baseClassMod):
def dFunction(self):
print "We are in a derived Class"
buwhen I'm trying to run derivedClass.py I get this error :
TypeError: Error when calling the metaclass bases
module.__init__() takes at most 2 arguments (3 given)
Interesting thing is that if I run baseClass.py and then run :def dFunction(self):
print "We are in a derived Class"
It works fin