On Mon, Oct 25, 2021 at 8:09 PM Jeremiah Vivian <[email protected]> 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 -- [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/UUBXQZFNEJWKVBLQRR55UXPKF2IAAWBU/ Code of Conduct: http://python.org/psf/codeofconduct/
