Something like this will do what you want to achieve. I think the above
does as well what you want, but to me my solution is much more clear

class Base(object):
        def foo(self):
                print 'Base foo'

class Derived(Base):
        def foo(self):
                super(Derived, self).foo()
                print 'Derived foo'
d = Derived()
d.foo()

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to