Listing subtypes

Samuel knipknap at gmail.com
Wed Nov 28 18:46:11 EST 2007


Hi,

I remember seeing an easy way to list all subtypes of a specific type
but I haven't been able to find it anymore. What I am trying to do is
this: Given a class, get a list of all classes that derive from it.
Pretty much like __mro__ but downwards rather then upwards. Any ideas?

-Samuel



More information about the Python-list mailing list