[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

Amaury Forgeot d'Arc report at bugs.python.org
Thu Jul 3 00:32:06 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

Isn't that a serious compatibility issue? 2.5 code should work on 2.6
with minimal effort.


For deque objects, I don't get your point:

Python 2.6b1+ (trunk, Jul  1 2008, 22:35:48) [MSC v.1500 32 bit Intel)]
on win32
>>> from collections import deque
>>> hash(deque())
TypeError: deque objects are unhashable

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


More information about the Python-bugs-list mailing list