Differences between revisions 2 and 3
Revision 2 as of 2007-04-10 10:39:05
Size: 253
Editor: fosca
Comment:
Revision 3 as of 2007-04-10 13:50:58
Size: 426
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from I come from a java background. Java has an API that list all classes and their methods that come with Java. Is there anything like that in python?

I don't know ;) but entering the command:

>>> dir()

into the Python interpreter gives a list of defined classes and variables.

Using the TAB key on one of the existing objects opens a list of possible completions, i.e. its methods/attributes.

Asking for Help/Can Python introspect like Java? (last edited 2011-03-26 23:23:03 by PaulBoddie)

Unable to edit the page? See the FrontPage for instructions.