Vajrasky Kok added the comment: I just realized that Enum member could be None. I'll think how to improve this patch. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue20654> _______________________________________