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)

A Django site. this page was rendered by a django application in 0.02s 2008-10-10 23:42:15.996721. hosted by webfaction.