Administrator
|
Hi,
You can use Class.descendants() for listing all subclasses (including subclasses of subclasses, recursively), or Class.subclasses() to obtain only direct subclasses.
NB subclasses returns a generator, you may use list(Class.subclasses()) to turn it into a list.
Jiba
|