How can I find the methods or attributes of an object?
For an instance x of a user-defined class, dir(x) returns an alphabetized list of the names containing the instance attributes and methods and attributes defined by its class.
CATEGORY: programming
Comment:
It could be interesting to provide an answer to the question logically following this explanation: "How can I see more information about an object's methods or attributes?"
Posted by LaundroMat (2006-11-22)