On Sun, 26 Jul 2020 at 19:33, Henry Lin <[email protected]> wrote:
>
> - Any class implementing the `__eq__` operator is no longer hashable
>
>
You can use:
def __hash__(self):
return id(self)
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/AQESXZVDMQHY367WVYNH2N46R67CD5OF/
Code of Conduct: http://python.org/psf/codeofconduct/