Guest User

Untitled

a guest
Jun 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. class A(object):
  2. def meth(self):
  3. print(bla)
  4.  
  5. class B(A):
  6. def meth(self):
  7. bla = 12
  8. # why doesn't super().meth() work here?
  9. super(B, self).meth()
  10. # 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