fork download
  1. class Foo(object):
  2. def __eq__(self, other):
  3. return True if isinstance(other, Foo) else NotImplemented
  4. def foo(self):
  5. pass
  6.  
  7. print Foo().foo == Foo().foo
  8. print [].__repr__ == [].__repr__
  9. print [].append == [].append
Success #stdin #stdout 0.01s 9024KB
stdin
Standard input is empty
stdout
True
True
False