iterate over classes in module python

25

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

Comments

Submit
0 Comments