class MyThing: pass x = MyThing() x.__eq__ = lambda self, other: Trueprint(x == 1) x.__eq__ = lambda other: Trueprint(x == 1)
Standard input is empty
False False
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!