Module documentation

Rene Pijlman reply.in.the.newsgroup at my.address.is.invalid
Sun Mar 26 10:19:35 EST 2006


Tony Burrows:
>With something like Java I can find the syntax of a method call with no
>problems, how do I do the same with Python?

The basic syntax is just the name, with parameters in brakcets:

   object.method(par1, par2, ...)

This is explained in the documentation, of course.

>how do I find out what parameters are needed and what they represent?

This is documented in the library reference:
http://docs.python.org/modindex.html

You can also query the module for its docstrings:

>>>import os
>>>help(os)
...
>>>help(os.utime)
Help on built-in function utime in module nt:
...



More information about the Python-list mailing list