New submission from Daniel Stutzbach <dan...@stutzbachenterprises.com>:

The Mapping ABC's __eq__ method should return NotImplemented if the other type 
is not a Mapping, to give the other type a chance at the comparison.  Right now 
it simply returns false.

The comparison methods on the other ABCs in _abcoll.py already return 
NotImplemented if they don't recognize the other type.

----------
components: Library (Lib)
files: mapping.patch
keywords: patch
messages: 105833
nosy: stutzbach
priority: normal
severity: normal
stage: patch review
status: open
title: The Mapping ABC's __eq__ method should return NotImplemented if the 
other type is not a Mapping
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file17355/mapping.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8729>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to