Best way to document Python code...

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Mon Jan 22 16:09:09 EST 2007


Boris Ozegovic:
> Does Python has API just like in Java, for example
> http://java.sun.com/j2se/1.5.0/docs/api/allclasses-noframe.html ctrl-f and
> than click on class you are searching for, and finally you get clean list
> of all fields and methods.  Where can I find similar in Python, for
> example, if I would like to see which methods list/dictionary has.

You can do that from the shell, with help(name) or dir(name), where
name can be a class, object, most things.

Bye,
bearophile




More information about the Python-list mailing list