This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Oren Milman, serhiy.storchaka, vstinner
Date 2017-08-17.18:30:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502994622.99.0.676560178017.issue31229@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-08-17 18:30:23serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, Oren Milman
2017-08-17 18:30:22serhiy.storchakasetmessageid: <1502994622.99.0.676560178017.issue31229@psf.upfronthosting.co.za>
2017-08-17 18:30:22serhiy.storchakalinkissue31229 messages
2017-08-17 18:30:22serhiy.storchakacreate