Is it possible to use keyword arguments from C?

Discussion in 'Python' started by Darren Dale, Jul 13, 2009.

  1. Darren Dale

    Darren Dale Guest

    I am learning about the python C-api in order to contribute a feature
    to numpy. I see a discussion (http://docs.python.org/extending/
    extending.html#keyword-parameters-for-extension-functions) on how to
    create a function or method in C that accepts kwargs, but is it
    possible to call such a method from C using kwargs rather than
    positional arguments?
    Darren Dale, Jul 13, 2009
    #1
    1. Advertising

  2. Darren Dale

    Darren Dale Guest

    On Jul 13, 9:38 am, Darren Dale <> wrote:
    > I am learning about the python C-api in order to contribute a feature
    > to numpy. I see a discussion (http://docs.python.org/extending/
    > extending.html#keyword-parameters-for-extension-functions) on how to
    > create a function or method  in C that accepts kwargs, but is it
    > possible to call such a method from C using kwargs rather than
    > positional arguments?


    The answer was yes, this can be done. I found a short discussion at
    the bottom of section 1.6: http://docs.python.org/extending/extending.html#calling-python-functions-from-c
    Darren Dale, Jul 13, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Edward Diener
    Replies:
    14
    Views:
    4,852
    Josiah Carlson
    Apr 6, 2004
  2. Sandra-24
    Replies:
    1
    Views:
    418
    Sandra-24
    Dec 22, 2006
  3. Replies:
    6
    Views:
    435
    Peter Otten
    May 10, 2007
  4. Hamilton, William

    RE: keyword checker - keyword.kwlist

    Hamilton, William, May 10, 2007, in forum: Python
    Replies:
    4
    Views:
    337
  5. Peter Motzfeldt
    Replies:
    1
    Views:
    134
Loading...

Share This Page