News for hackers. Stuff that matters.
Re:The PEPs of Python 3.9 by pansa2 on Friday May 29, 2020 @02:41AM (#23346917)
Classes can overload `==`:

    class C:
        def __eq__(self, other):
            return True

    print(C() == None)  # True
    print(C() is None)  # False

There are no comments on this comment yet.