Differences between revisions 1 and 6 (spanning 5 versions)
Revision 1 as of 2007-04-10 10:37:52
Size: 417
Editor: fosca
Comment:
Revision 6 as of 2007-08-31 19:24:55
Size: 910
Editor: 13
Comment: wxPython documentation link
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
## 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:
Line 10: Line 9:

I'm not sure this is what the OP is asking. I think s/he's referring to the API documentation rather than the API itself. Calling help(object) in the interpreter is a good start for help on an object.

CL's answer: no, Python cannot introspect like Java; it can only do better.

= wxPython =
There ''is'', however, such documentation for wxPython (a GUI-building kit for Python), although it is still under development. [http://www.wxpython.org/docs/api/ Here is the link].

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.

I'm not sure this is what the OP is asking. I think s/he's referring to the API documentation rather than the API itself. Calling help(object) in the interpreter is a good start for help on an object.

CL's answer: no, Python cannot introspect like Java; it can only do better.

wxPython

There is, however, such documentation for wxPython (a GUI-building kit for Python), although it is still under development. [http://www.wxpython.org/docs/api/ Here is the link].

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.