documentation for PyArg_ParseTupleAndKeywords

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

    documentation for PyArg_ParseTupleAndKeywords

    I'm just starting to play around with the Python source. (Specifically,
    I'm looking at adding a key argument to max/min like sorted has.) Can
    anyone direct me to the documentation on how
    PyArg_ParseTupl eAndKeywords, etc. work? In particular, I can't figure
    out how the format arg to vgetargskeyword s should be specified...

    Thanks,

    Steve
  • Pierre Barbier de Reuille

    #2
    Re: documentation for PyArg_ParseTupl eAndKeywords

    Steven Bethard a écrit :[color=blue]
    > I'm just starting to play around with the Python source. (Specifically,
    > I'm looking at adding a key argument to max/min like sorted has.) Can
    > anyone direct me to the documentation on how
    > PyArg_ParseTupl eAndKeywords, etc. work? In particular, I can't figure
    > out how the format arg to vgetargskeyword s should be specified...
    >
    > Thanks,
    >
    > Steve[/color]

    You have a good documentation about that on the web site ... look at
    "Python/C API" and "Extending and Embedding". The second one is more a
    tutorial when the first one is more a reference. But everything is
    explained there !

    Pierre

    Comment

    • John Machin

      #3
      Re: documentation for PyArg_ParseTupl eAndKeywords

      Steven Bethard <steven.bethard @gmail.com> wrote in message news:<NGOqd.485 972$D%.108119@a ttbi_s51>...[color=blue]
      > I'm just starting to play around with the Python source. (Specifically,
      > I'm looking at adding a key argument to max/min like sorted has.) Can
      > anyone direct me to the documentation on how
      > PyArg_ParseTupl eAndKeywords, etc. work? In particular, I can't figure
      > out how the format arg to vgetargskeyword s should be specified...
      >[/color]

      Well I just fired up the doco gadget and pasted
      "PyArg_ParseTup leAndKeywords" into the Search box and the 2nd
      reference it came up with was this:

      manual: Python/C API Reference Manual
      section: 5.5 Parsing arguments and building values

      The 1st, 3rd & 4th references were examples of calling it.

      Where were _you_ looking?

      If you want a few :-) more examples, cd to the Modules directory of
      your Python source tree and grep PyArg_Parse *.c

      Comment

      • Steven Bethard

        #4
        Re: documentation for PyArg_ParseTupl eAndKeywords

        John Machin wrote:[color=blue]
        > Well I just fired up the doco gadget and pasted
        > "PyArg_ParseTup leAndKeywords" into the Search box and the 2nd
        > reference it came up with was this:
        >
        > manual: Python/C API Reference Manual
        > section: 5.5 Parsing arguments and building values
        >
        > The 1st, 3rd & 4th references were examples of calling it.
        >
        > Where were _you_ looking?[/color]

        Google, which for once wasn't the right answer. I did actually find the
        docs later by searching for "vgetargskeywor ds", finding

        and realizing that this had to be in the Python Docs somewhere. =)

        Thanks for the pointers. What's the "doco gadget" you're talking about?

        Steve

        Comment

        • Scott David Daniels

          #5
          Re: documentation for PyArg_ParseTupl eAndKeywords

          Steven Bethard wrote:[color=blue]
          > Thanks for the pointers. What's the "doco gadget" you're talking about?[/color]

          I conclude from this question that you are not using a Windows python.
          I suspect, therefore, the answer is Gilda Ratner's ".... Never mind."

          --Scott David Daniels
          Scott.Daniels@A cm.Org

          Comment

          Working...