[New-bugs-announce] [issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords

Larry Hastings report at bugs.python.org
Thu Mar 15 22:49:18 CET 2012


New submission from Larry Hastings <larry at hastings.org>:

This has been split off from #14127 at Antoine's request.

The attached patch adds support for keyword-only arguments to the PyArg_ParseTupleAndKeywords() family of functions.  Includes doc and test.

I used '$' to indicate "all parameters after this are keyword-only"; since they must also be optional it must follow a '|'.  (I would have used '*' but we already use that for 'U*' 's* etc.)

The patch already received one review from Greg P. Smith on the previous issue; the patch I'm attaching here is the second revision incorporating his suggestions.

----------
assignee: larry
components: Interpreter Core
files: larry.parsekwonly.diff.2.txt
keywords: patch
messages: 155961
nosy: gregory.p.smith, larry, pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: Add keyword-only parameter support to PyArg_ParseTupleAndKeywords
type: enhancement
versions: Python 3.3
Added file: http://bugs.python.org/file24878/larry.parsekwonly.diff.2.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14328>
_______________________________________


More information about the New-bugs-announce mailing list