Message195152
Another problem is what happens when an implementation uses non-"virtual" inheritance:
>>> issubclass(collections.UserDict, collections.abc.Mapping)
True
>>> collections.UserDict in collections.abc.Mapping.get_virtual_subclasses(True)
False
IOW, I think this get_virtual_subclasses() proposal is too low-level to be commonly useful, since it depends on implementation details (whether subclassing is direct or not, whether registering is implicit or explicit). |
|
Date |
User |
Action |
Args |
2013-08-14 13:22:36 | pitrou | set | recipients:
+ pitrou, rhettinger, christian.heimes, stutzbach |
2013-08-14 13:22:36 | pitrou | set | messageid: <1376486556.03.0.0133393664531.issue18737@psf.upfronthosting.co.za> |
2013-08-14 13:22:36 | pitrou | link | issue18737 messages |
2013-08-14 13:22:35 | pitrou | create | |
|