[New-bugs-announce] [issue31730] list unhashable, can not be use as key to dict

gene@nlc.co.nz report at bugs.python.org
Sun Oct 8 16:54:49 EDT 2017


New submission from gene at nlc.co.nz <gene at 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 Core
messages: 303919
nosy: gene at nlc.co.nz
priority: normal
severity: normal
status: open
title: list unhashable, can not be use as key to dict
type: enhancement
versions: Python 2.7

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


More information about the New-bugs-announce mailing list