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 <[email protected]>
<http://bugs.python.org/issue27984>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com