def all_subclasses(cls):
for subclass in cls.__subclasses__():<EOL><INDENT>yield subclass<EOL>for subc in all_subclasses(subclass):<EOL><INDENT>yield subc<EOL><DEDENT><DEDENT>
Recursively generate of all the subclasses of class cls.