>>> not not "" False >>> not not [] False >>> "" == [] False >>> "123" == 123 False >>> 123 == "123" False >>> class Foo(object): ... def __eq__(self, b): ... return True ... >>> Foo() == 1 True >>> Foo() == "asd" True