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 <rep...@bugs.python.org>
<http://bugs.python.org/issue18510>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to