[issue43829] MappingProxyType cannot hash a hashable underlying mapping

Serhiy Storchaka report at bugs.python.org
Wed Apr 14 03:24:00 EDT 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Perhaps MappingProxyType is unhashable by accident. It implements __eq__, and it makes it unhashable by default. And nobody made request for this feature before. I think that implementing __hash__ would not make anything wrong.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43829>
_______________________________________


More information about the Python-bugs-list mailing list