Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. class A():
  2. def __init__(self, x, y):
  3. # do something with x and y
  4.  
  5. def aMethod(self, param1):
  6. # do stuff with param1
  7.  
  8. class B(A):
  9. def bMethod1(self, param2):
  10. # do stuff with self and param2
  11. super(B, self).aMethod(param2)
  12.  
  13. def bMethod2(self, myDict):
  14. # do stuff with myDict
  15. return myDict
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement