Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. class A(object):
  2. def __init__(self, x, y):
  3. self.x = x
  4. self.y = y
  5.  
  6.  
  7. class B(object):
  8. def __init__(self, x, y):
  9. self.x = x
  10. self.y = y
  11.  
  12.  
  13. class C(object):
  14. def __init__(self, i, j):
  15. self.i = i
  16. self.j = j
  17.  
  18.  
  19. print(A(x=10, y=20) == A(x=10, y=20))
  20. print(A(x=10, y=20) == B(x=10, y=20))
  21. print(A(x=10, y=20) == C(i=10, j=20))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement