Ned Deily 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
New submission from g...@nlc.co.nz :
A list can no be used as the key to a dict, apparently because it is
"unhashable": TypeError: unhashable type: 'list'.
The code must exist to hash object like this a tuple is hashable and can be
constructed from a list.
--
components: Interpreter C