[issue18510] if Enum member value is not hashable an exception is raised
Ethan Furman
report at bugs.python.org
Sat Jul 20 01:43:58 CEST 2013
New submission from Ethan Furman:
While working on issue #18508 I stumbled across this:
Traceback (most recent call last):
...
File "/usr/local/lib/python3.4/enum.py", line 417, in __new__
if value in cls._value2member_map:
TypeError: unhashable type: 'list'
I'll wrap it in a try-except block, but I must admit I was surprised the answer wasn't False.
----------
assignee: ethan.furman
messages: 193384
nosy: ethan.furman
priority: normal
severity: normal
status: open
title: if Enum member value is not hashable an exception is raised
type: behavior
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18510>
_______________________________________
More information about the Python-bugs-list
mailing list