Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. class foo( object ):
  2. def __init__(self, bar, bar2):
  3. self.bar = bar
  4. self.baz, self.square_baz = self.func(bar2)
  5.  
  6. def func(self, bar2):
  7. return self.bar + bar2, bar2 * ba2
  8.  
  9. class foo( object ):
  10. def __init__(self, bar, bar2):
  11. self.bar = bar
  12. self.func(bar2)
  13.  
  14. def func(self, bar2):
  15. self.baz = self.bar + bar2
  16. self.square_baz = bar2 * bar2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement