New submission from Serhiy Storchaka: 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. ---------- components: Library (Lib) files: inspect_eq.patch keywords: patch messages: 243303 nosy: serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Issues with equality of inspect objects type: behavior versions: Python 3.5 Added file: http://bugs.python.org/file39388/inspect_eq.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24206> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com