Message195182
I like to do something similar to marker interfaces [1] with ABCs. For introspection and documentation I need a way to get all non-abstract classes that are implemented by an ABC.
How about I change the implementation to get_subclasses(direct=False) to return all virtual and real subclasses of an ABC? I can filter out abstract types with inspect.isabstract() later.
[1] http://www.muthukadan.net/docs/zca.html#marker-interfaces |
|
Date |
User |
Action |
Args |
2013-08-14 15:47:17 | christian.heimes | set | recipients:
+ christian.heimes, rhettinger, pitrou, stutzbach |
2013-08-14 15:47:17 | christian.heimes | set | messageid: <1376495237.5.0.553323208411.issue18737@psf.upfronthosting.co.za> |
2013-08-14 15:47:17 | christian.heimes | link | issue18737 messages |
2013-08-14 15:47:17 | christian.heimes | create | |
|