Здравствуйте, Аноним, Вы писали:
А>А причем здесь super? Классы между сообой вообще никак не связаны...
У питона такое типизация не пропустит
class A:
def hello(self):
print 'Hello I\'m A.'
def Foo(self):
self.hello()
class B:
def hello(self):
print 'Hello I\'m B.'
def Foo(self):
A.Foo(self)
b = B()
b.Foo()
Traceback (most recent call last):
File "hghghg.py", line 49, in <module>
b.Foo()
File "hghghg.py", line 46, in Foo
A.Foo(self)
TypeError: unbound method Foo() must be called with A instance as first argument (got B instance instead)