Serhiy Storchaka added the comment:

In all of these cases PyArg_ParseTupleAndKeywords() is used in uncommon way. 
These functions accept variable number of positional-only arguments, and 
PyArg_ParseTupleAndKeywords() is called with empty args tuple for parsing 
keyword arguments only. The patch uses a trick for detecting this case and 
generating more appropriate error message. Correct error message is generated 
in a normal case too.

LGTM. But it may be worth to add a short comment about the necessary of this 
special case. And please add tests for error messages in all of these 
functions. test_call looks appropriate place for them.

----------
nosy: +haypo, serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31229>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to