[issue27984] singledispatch is wonky with enums
Ethan Furman
report at bugs.python.org
Tue Sep 6 19:34:21 EDT 2016
Ethan Furman added the comment:
> IS = Enum("IS", "a, b")
functools is meant to work with types, but the enum member "IS.a" is not a type -- however, the enum "IS" is a type.
Use "foo.register(IS)" instead.
----------
nosy: +ncoghlan, rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27984>
_______________________________________
More information about the Python-bugs-list
mailing list