This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients christian.heimes, pitrou, rhettinger, stutzbach
Date 2013-08-14.15:54:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <448171054.62376305.1376495689205.JavaMail.root@zimbra10-e2.priv.proxad.net>
In-reply-to <1376495237.5.0.553323208411.issue18737@psf.upfronthosting.co.za>
Content
> 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.

You mean that implement an ABC? But you also need to return real
subclasses that implement the ABC (e.g. UserDict in the example above).

> 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.

Sounds ok.
History
Date User Action Args
2013-08-14 15:54:55pitrousetrecipients: + pitrou, rhettinger, christian.heimes, stutzbach
2013-08-14 15:54:55pitroulinkissue18737 messages
2013-08-14 15:54:55pitroucreate