Message189032
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. |
|
Date |
User |
Action |
Args |
2013-05-12 13:32:06 | ncoghlan | set | recipients:
+ ncoghlan, ethan.furman |
2013-05-12 13:32:06 | ncoghlan | set | messageid: <1368365526.11.0.0851374849295.issue17954@psf.upfronthosting.co.za> |
2013-05-12 13:32:06 | ncoghlan | link | issue17954 messages |
2013-05-12 13:32:06 | ncoghlan | create | |
|