Ethan Furman <et...@stoneleaf.us> added the comment:

Jonathan Hsu, you are correct -- and "don't do that" was my initial response; 
but Enum takes many pains to make sure the user doesn't shoot themselves in the 
foot, so raising a TypeError is appropriate instead of silently doing the wrong 
thing.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40025>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to