Author msullivan
Recipients larry, msullivan, serhiy.storchaka
Date 2019-02-02.03:54:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549079664.74.0.433191137698.issue34235@roundup.psfhosted.org>
In-reply-to
Content
How about adding another sigil that indicates that subsequent keyword-only arguments are required? So then your example becomes (using ` as a totally strawman option):

    PyArg_ParseTupleAndKeywords(args, kwds, "O|O$O`O", kwlist, &a, &b, &d, &c)

It's a little complicated but so is Python argument processing, so maybe that makes sense.

I can submit a PR for this.
History
Date User Action Args
2019-02-02 03:54:26msullivansetrecipients: + msullivan, larry, serhiy.storchaka
2019-02-02 03:54:24msullivansetmessageid: <1549079664.74.0.433191137698.issue34235@roundup.psfhosted.org>
2019-02-02 03:54:24msullivanlinkissue34235 messages
2019-02-02 03:54:24msullivancreate