This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2015-05-16.09:54:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431770076.76.0.66184936679.issue24206@psf.upfronthosting.co.za>
In-reply-to
Content
There are issues with implementations of equality in inspect classes.

1. __eq__ doesn't return NotImplemented. This causes that testing for equality with an instance of different classes always returns False, even when other class implements __eq__ that handles inspect class.

2. __ne__ returns False if __eq__ returns NotImplemented (in subclass).

3. All tests test only one of "==" or "!=" operations.

Proposed patch fixes these issues.
History
Date User Action Args
2015-05-16 09:54:36serhiy.storchakasetrecipients: + serhiy.storchaka
2015-05-16 09:54:36serhiy.storchakasetmessageid: <1431770076.76.0.66184936679.issue24206@psf.upfronthosting.co.za>
2015-05-16 09:54:36serhiy.storchakalinkissue24206 messages
2015-05-16 09:54:36serhiy.storchakacreate