[issue41114] "TypeError: unhashable type" could often be more clear

Raymond Hettinger report at bugs.python.org
Sun Sep 27 14:00:03 EDT 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

> Do you think it would help if the exception was of type UnhashableType

That would not add more information. The message already says "unhashable type".  Saying it twice doesn't help.

----------

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


More information about the Python-bugs-list mailing list