Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

iterate over classes in module python

dict([(name, cls) for name, cls in mod.__dict__.items() if isinstance(cls, type)])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #iterate #classes #module #python
ADD COMMENT
Topic
Name
3+4 =