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

2017-10-08 Thread Ned Deily
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

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

2017-10-08 Thread g...@nlc.co.nz
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