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