Nick Coghlan added the comment:

Ah, you're right, I forgot that was the other reason for disallowing extensions 
through subclassing.

To get extensions to work right, you need to flip it around so that 
isinstance(Color.red, MoreColor) is True, while isinstance(MoreColor.magenta, 
Color) is False.

----------
dependencies:  -Code, test, and doc review for PEP-0435 Enum
resolution:  -> invalid
status: open -> closed

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

Reply via email to