How can i get the parameternames of a non documented function ?

Michael Hudson mwh at python.net
Tue Feb 24 09:55:30 EST 2004


Jeremy Sanders <jeremy+plusnews at jeremysanders.net> writes:

> On Tue, 24 Feb 2004 13:49:33 +0000, Michael Hudson wrote:
> 
> > hilfmir at gmx.at (mzo) writes:
> >> I import a module (wrapped from c code) and have no documentation of
> >> it. How can i find out the name of the parameters / head of the
> >> functions ?
> > 
> > You can't.  Sorry.
> 
> Is that correct?

Yes.

> Couldn't you use inspect.getargspec(func) ?

Try it.

> It doesn't say you can't use it on wrapped C code.

Well, that means the docs are wrong.

Cheers,
mwh

-- 
  Or here's an even simpler indicator of how much C++ sucks: Print
  out the C++ Public Review Document.  Have someone  hold it about
  three feet  above your head and then drop it.  Thus  you will be
  enlightened.                                        -- Thant Tessman



More information about the Python-list mailing list