Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

iterate through attributes of class python

L = [[getattr(self, attr), attr] for attr in dir(self) if not attr.startswith("__")]
 
PREVIOUS NEXT
Tagged: #iterate #attributes #class #python
ADD COMMENT
Topic
Name
6+3 =