I recently came across this syntax, I am unaware of the difference.
I would appreciate it if someone could tell me the difference.
class Foo: def __eq__(self,other): return True foo=Foo() print(foo==None) # True print(foo is None) # False