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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mzo

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

    Hello

    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 ?

    The docstring is empty and help return only (...).

    martin
  • Michael Hudson

    #2
    Re: How can i get the parameternames of a non documented function ?

    hilfmir@gmx.at (mzo) writes:
    [color=blue]
    > Hello
    >
    > 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 ?[/color]

    You can't. Sorry.

    (Well, short of reading the C source or disassembling the built
    object...)

    Cheers,
    mwh

    --
    In the 1950s and 60s there was a regular brain drain of young
    Australians from the cities to London, but it was because of
    money, culture and opportunity, not spiders.
    -- Al Grant, ucam.chat, from Owen Dunn's review of the year

    Comment

    • Jeremy Sanders

      #3
      Re: How can i get the parameternames of a non documented function ?

      On Tue, 24 Feb 2004 13:49:33 +0000, Michael Hudson wrote:
      [color=blue]
      > hilfmir@gmx.at (mzo) writes:[color=green]
      >> 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 ?[/color]
      >
      > You can't. Sorry.[/color]

      Is that correct?

      Couldn't you use inspect.getargs pec(func) ?

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

      Jeremy

      Comment

      • Michael Hudson

        #4
        Re: How can i get the parameternames of a non documented function ?

        Jeremy Sanders <jeremy+plusnew s@jeremysanders .net> writes:
        [color=blue]
        > On Tue, 24 Feb 2004 13:49:33 +0000, Michael Hudson wrote:
        >[color=green]
        > > hilfmir@gmx.at (mzo) writes:[color=darkred]
        > >> 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 ?[/color]
        > >
        > > You can't. Sorry.[/color]
        >
        > Is that correct?[/color]

        Yes.
        [color=blue]
        > Couldn't you use inspect.getargs pec(func) ?[/color]

        Try it.
        [color=blue]
        > It doesn't say you can't use it on wrapped C code.[/color]

        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

        Comment

        Working...