iterate over classes in module python

37

dict([(name, cls) for name, cls in mod.__dict__.items() if isinstance(cls, type)])

Comments

Submit
0 Comments