Message240095
Probably I'm overlooking something, but why isn't this hook defined cooperatively, with a terminating base class method that returns True? If the call chain progresses to the base, then all of the interfaces have been satisfied. Otherwise one of the bases returns NotImplemented. If it's implemented cooperatively, then the `cls is Iterable` check can be removed, because it returns super().__subclasshook__(C) instead of True. |
|
Date |
User |
Action |
Args |
2015-04-04 22:51:35 | eryksun | set | recipients:
+ eryksun, mjpieters, joncle, docs@python, ztane |
2015-04-04 22:51:35 | eryksun | set | messageid: <1428187895.08.0.392287426434.issue23864@psf.upfronthosting.co.za> |
2015-04-04 22:51:35 | eryksun | link | issue23864 messages |
2015-04-04 22:51:34 | eryksun | create | |
|