As far as I can tell, and everything I've been finding online, this should work (but it doesn't, which is why I'm asking here ;) )
class Tigon(Crossbreeds, Predator, Lion):
def __init__(self):
super().__init__()
def printSize(self):
print("Huge")
Both "Crossbreeds" and "Predator" inherit from "Mammal", and "Lion" inherits from Predator. The compilation of those works fine. I'm working on Python 3.2, though I did also try the earlier:
Edit: Sorry, part of my post didn't come through for some reason.
I also tried:
class Tigon(Crossbreeds, Predator, Lion):
def __init__(self):
super(Tigon, self).__init__()
def printSize(self):
print("Huge")
and both of them gave me:
class Tigon(Crossbreeds, Predator, Lion):
TypeError: Cannot create a consistent method resolution
order (MRO) for bases Predator, Mammal, Lion
Any suggestions?
super()normally takes arguments: docs.python.org/library/functions.html#super