
Reet C. answered 04/09/19
Tutor
5
(10)
Computer Engineer With A Passion For Teaching!
The dir() function
my_object = TheObject()
print(dir(my_object))
The dir function returns a list of all the available attributes in an object.
The only other ways would be to read the documentation on the class/object in question or to read the code that implements it.
Hope that helps :)