[New-bugs-announce] [issue24206] Issues with equality of inspect objects
Serhiy Storchaka
report at bugs.python.org
Sat May 16 11:54:36 CEST 2015
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 <report at bugs.python.org>
<http://bugs.python.org/issue24206>
_______________________________________
More information about the New-bugs-announce
mailing list