All pastes #973032 Raw Edit

xif

public python v1 · immutable
·published 2008-04-05 21:42 UTC
rendered paste body
class A(object):    def foo(self):        print 'A.foo called'class B(object):    def foo(self):        print 'B.foo called'        super(B, self).foo()class C(B,A):    def foo(self):        print 'C.foo called'        super(C, self).foo()C().foo()$ python werneck.py C.foo calledB.foo calledA.foo called