This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients ethan.furman, ncoghlan
Date 2013-05-12.13:32:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368365526.11.0.0851374849295.issue17954@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-05-12 13:32:06ncoghlansetrecipients: + ncoghlan, ethan.furman
2013-05-12 13:32:06ncoghlansetmessageid: <1368365526.11.0.0851374849295.issue17954@psf.upfronthosting.co.za>
2013-05-12 13:32:06ncoghlanlinkissue17954 messages
2013-05-12 13:32:06ncoghlancreate