how to get function signature

Robert Kern rkern at
Thu Jul 28 08:49:25 CEST 2005

upadhyay at wrote:
> Hi,
> I was working on a dir like function that gives more information than
> the usual dir, but I am not satisfied with the way I get function
> arguments for callable members of an object. Take a look at it here:
> I have
> seen PythonWin showing function arguments as tooltips, can anyone
> please let me know how to get it.

import inspect

Robert Kern
rkern at

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter

More information about the Python-list mailing list