On Mon, Oct 25, 2021 at 8:09 PM Jeremiah Vivian
<nohackingofkrow...@gmail.com> wrote:
>
> Something like this:
> > \>\>\> class Movement:
> > ...     def __eq__(self, x):
> > ...         return type(x) is Movement
> > ...

Uhh, why are you defining equality in this bizarre way? Every Movement
is equal to every other?

ChrisA
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/UUBXQZFNEJWKVBLQRR55UXPKF2IAAWBU/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to