Answers for "python object loop through properties"

0

iterate through attributes of class python

L = [[getattr(self, attr), attr] for attr in dir(self) if not attr.startswith("__")]
Posted by: Guest on November-23-2020

Code answers related to "python object loop through properties"

Python Answers by Framework

Browse Popular Code Answers by Language