Ethan Furman added the comment: Removing the 'enum_to_int' function would also take care of the accepting inappropriate types problem. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue21076> _______________________________________