c/c++ extensions and help()

Robert Kern rkern at ucsd.edu
Fri Jul 29 01:02:53 CEST 2005

Lenny G. wrote:
> Is there a way to make a c/c++ extension have a useful method
> signature?  Right now, help(myCFunc) shows up like:
> myCFunc(...)
>   description of myCFunc
> I'd like to be able to see:
> myCFunc(myArg1, myArg2)
>   description of myCFunc
> Is this currently possible?

There really isn't a way to let the inspect module know about extension 
function arguments. Just put it in the docstring.

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