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

Samuel Freilich report at bugs.python.org
Tue Oct 13 09:55:02 EDT 2020


Samuel Freilich <sfreilich at google.com> added the comment:

python-ideas thread: https://mail.python.org/archives/list/python-ideas@python.org/thread/B6OMGYIM47OVGOCZLEY3MEUJDFURJRDV/

The most minimal ideas from that seem to be:

1. Maybe link to the glossary from the error message (if links to documentation in error messages are permissible).

2. Add a glossary entry for "unhashable" for the sake of completeness (similar to how there are entries for both "immutable" and "mutable").

----------

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


More information about the Python-bugs-list mailing list