New submission from Larry Hastings <la...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14328>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to