Re: [Python-Dev] [Python-checkins] cpython: Issue #14328: Add keyword-only parameters to PyArg_ParseTupleAndKeywords.
2012/3/20 larry.hastings
http://hg.python.org/cpython/rev/052779d34945 changeset: 75842:052779d34945 parent: 75839:1c0058991740 user: Larry Hastings
date: Tue Mar 20 20:06:16 2012 +0000 summary: Issue #14328: Add keyword-only parameters to PyArg_ParseTupleAndKeywords. They're optional-only for now (unlike in pure Python) but that's all I needed. The syntax can easily be relaxed if we want to support required keyword-only arguments for extension types in the future.
files: Doc/c-api/arg.rst | 9 +++ Lib/test/test_getargs2.py | 74 ++++++++++++++++++++++++++- Modules/_testcapimodule.c | 20 ++++++- Python/getargs.c | 34 ++++++++++++- 4 files changed, 134 insertions(+), 3 deletions(-)
Forgot about Misc/NEWS? -- Regards, Benjamin
participants (1)
-
Benjamin Peterson