From 5253c30791c2fd73ba85ad11f629b5b021a0a9c4 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Wed, 30 Mar 2005 16:41:55 +0000 Subject: [PATCH] I suppose a bug report or even a fix would be a better response, but commit a yelp about a noted flaw the error messages for METH_KEYWORDS functions under some circumstances. --- Python/getargs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/getargs.c b/Python/getargs.c index 48f9dc481d..e89f0d587c 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -1299,7 +1299,8 @@ vgetargskeywords(PyObject *args, PyObject *keywords, char *format, /* make sure we got an acceptable number of arguments; the message is a little confusing with keywords since keyword arguments which are supplied, but don't match the required arguments - are not included in the "%d given" part of the message */ + are not included in the "%d given" part of the message + XXX and this isn't a bug!? */ if (len < min || max < len) { if (message == NULL) { PyOS_snprintf(msgbuf, sizeof(msgbuf), -- 2.50.1