Message227489
Is there a reason register() doesn't check for abstract methods, like subclassing does? Would it fail for some builtin classes? It seems that this would be a better guarantee that, say, something really is iterable when you check isinstance(Collections.Iterable, o), since someone could have called Collections.Iterable.register(o.__class__) without adding an __iter__ method to their class. |
|
Date |
User |
Action |
Args |
2014-09-24 21:37:14 | rmccampbell7 | set | recipients:
+ rmccampbell7 |
2014-09-24 21:37:14 | rmccampbell7 | set | messageid: <1411594634.83.0.710173363253.issue22487@psf.upfronthosting.co.za> |
2014-09-24 21:37:14 | rmccampbell7 | link | issue22487 messages |
2014-09-24 21:37:14 | rmccampbell7 | create | |
|