Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A(object):
- def meth(self):
- print(bla)
- class B(A):
- def meth(self):
- bla = 12
- # why doesn't super().meth() work here?
- super(B, self).meth()
- # why does this not return 12, the super obviously doesn't share the same namespace, so you'd need to make it an instance / class attribute?
Add Comment
Please, Sign In to add comment