How To Print All Attributes in Python Object

Python

 1|  my_object = MyClass()
 2|  print(dir(my_object))
Did you find this snippet useful?

Sign up for free to to add this to your code library