fork download
  1. class GovnoClass(object):
  2. def __init__(self, khooj, pizda, djigurda):
  3. self.khooj = khooj
  4. self.pizda = pizda
  5. self.djigurda = djigurda
  6.  
  7. def __eq__(self, right):
  8. return (self.khooj , self.pizda, self.djigurda ) == right
  9.  
  10.  
  11. a = GovnoClass(1,4,88)
  12. b = GovnoClass(1,4,88)
  13.  
  14. print a==b
  15. print a is b
  16. print a is a
Success #stdin #stdout 0.08s 10848KB
stdin
Standard input is empty
stdout
True
False
True