[Python-3000] How to specify keyword-only arguments from C?
Nick Coghlan
ncoghlan at gmail.com
Fri Jun 6 04:02:44 CEST 2008
Alexandre Vassalotti wrote:
> Hi,
>
> Is there a way to specify keyword-only arguments using the C API. I
> searched through the mailing list archive, read PEP 3102 and grep-ed
> the codebase, but I found nothing looking like a C API. So I am
> wondering, is this a Python-only feature?
The C API has had this for a long time, but only in the *args, **kwds
form - i.e., an argument is keyword only if the C code only looks for it
in the keywords dictionary and not the args tuple.
There's no special support for it in the arg parsing machinery that I
know of, if that's the question you're asking.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-3000
mailing list