INADA Naoki <songofaca...@gmail.com> added the comment:

"Key must be hashable" is precondition of dict operations.

All operations for dict will raise TypeError for unhashable keys.
For example, d[k] will raise TypeError too, but document doesn't
mention about it:

"""
Return the item of d with key key. Raises a KeyError if key is not in the map.
"""
https://docs.python.org/3/library/stdtypes.html#dict

----------
nosy: +inada.naoki

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32675>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to