Guest User

Untitled

a guest
Jan 22nd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. def get_int():
  2. return 555
  3.  
  4. def get_math_int():
  5. return math.pow(2, 5)
  6.  
  7. class ClassFoo(object):
  8. def __init__(self, x, y):
  9. self.attr1 = "hello"
  10. self.attr2 = get_int()
  11. self.attr3 = get_math_int()
  12.  
  13. def spam(self):
  14. return 77
  15.  
  16. class ClassBar(object):
  17. def __init__(self, x, y):
  18. self.attr4 = "hello"
  19.  
  20. def spam(self):
  21. return 99
Add Comment
Please, Sign In to add comment