Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python2.6
- class foo(object):
- def x(self):
- print 'foo'
- class foo2(foo):
- def x(self):
- print 'foo2'
- super(self.__class__, self).x() # wrong
- class foo3(foo2):
- def x(self):
- print 'foo3'
- super(foo3, self).x()
- f = foo3()
- f.x()
Advertisement
Add Comment
Please, Sign In to add comment