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 <>
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.
Date User Action Args
2015-05-16 09:54:36serhiy.storchakasetrecipients: + serhiy.storchaka
2015-05-16 09:54:36serhiy.storchakasetmessageid: <>
2015-05-16 09:54:36serhiy.storchakalinkissue24206 messages
2015-05-16 09:54:36serhiy.storchakacreate