Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is it possible to use keyword arguments from C?

0 views
Skip to first unread message

Darren Dale

unread,
Jul 13, 2009, 9:38:17 AM7/13/09
to
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

unread,
Jul 13, 2009, 9:47:41 AM7/13/09
to

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

0 new messages