DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+4 =
Submit