[Python-Dev] [Python-checkins] cpython: Issue #14328: Add keyword-only parameters to PyArg_ParseTupleAndKeywords. (original) (raw)

Benjamin Peterson benjamin at python.org
Tue Mar 20 21:09:04 CET 2012


2012/3/20 larry.hastings <python-checkins at python.org>:

http://hg.python.org/cpython/rev/052779d34945 changeset:   75842:052779d34945 parent:      75839:1c0058991740 user:        Larry Hastings <larry at hastings.org> date:        Tue Mar 20 20:06:16 2012 +0000 summary:  Issue #14328: Add keyword-only parameters to PyArgParseTupleAndKeywords.

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/testgetargs2.py |  74 ++++++++++++++++++++++++++-  Modules/testcapimodule.c |  20 ++++++-  Python/getargs.c          |  34 ++++++++++++-  4 files changed, 134 insertions(+), 3 deletions(-)

Forgot about Misc/NEWS?

-- Regards, Benjamin



More information about the Python-Dev mailing list