how to get function signature

Robert Kern rkern at ucsd.edu
Thu Jul 28 02:49:25 EDT 2005


upadhyay at gmail.com 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:
> http://nerdierthanthou.nfshost.com/2005/07/mdir-for-python.html. 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 ucsd.edu

"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