[issue31730] list unhashable, can not be use as key to dict

Ned Deily report at bugs.python.org
Sun Oct 8 17:02:03 EDT 2017


Ned Deily <nad at python.org> added the comment:

As documented, a dict key must be hashable and, because lists are not immutable, they are not hashable and thus can't be used as keys.  See the Python Glossary for more info.  https://docs.python.org/2/glossary.html

----------
nosy: +ned.deily
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list