I frequently do this sort of thing:
print "Would you like fries with that?"
Return a proxy object that delegates method calls to a parent or sibling class of type. This is useful for accessing inherited methods that have been overridden in a class. The search order is same as that used by
getattr()except that the type itself is skipped.
In other words, a call to
super returns a fake object which delegates attribute lookups to classes above you in the inheritance chain. Points to note:
superin Python 2.x. This requirement was waived in 3.x.
Take care: there are many places to get confused about multiple inheritance in Python. You might want to read
super() Considered Harmful. If you are sure that you are going to stick to a single inheritance tree, and that you are not going to change the names of classes in said tree, you can hardcode the class names as you do above and everything will work fine.