Python: find all classes which inherit from this one?
Is there any way in python to query a namespace for classes which inherit from a particular class?  Given a class `widget` I'd like to be able to call something like `inheritors(widget)` to get a list of all my different kinds of widget.
Python: find all classes which inherit from this one?
===

Is there any way in python to query a namespace for classes which inherit from a particular class?  Given a class `widget` I'd like to be able to call something like `inheritors(widget)` to get a list of all my different kinds of widget.