Differences between revisions 1 and 2
Revision 1 as of 2007-04-10 10:37:52
Size: 417
Editor: fosca
Comment:
Revision 2 as of 2007-04-10 10:39:05
Size: 253
Editor: fosca
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Describe 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? here.

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

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.