[issue21481] Argpase Namespace object methods __eq__ and __ne__ raise TypeError when comparing to None

Raymond Hettinger report at bugs.python.org
Fri May 23 02:48:35 CEST 2014


Raymond Hettinger added the comment:

The equality and inequality tests need to return NotImplemented when comparing to an unknown type.

----------
assignee:  -> rhettinger
nosy: +bethard, rhettinger
priority: normal -> low
stage:  -> needs patch
type:  -> behavior
versions:  -Python 3.1, Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21481>
_______________________________________


More information about the Python-bugs-list mailing list