]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
I suppose a bug report or even a fix would be a better response, but
authorMichael W. Hudson <mwh@python.net>
Wed, 30 Mar 2005 16:41:55 +0000 (16:41 +0000)
committerMichael W. Hudson <mwh@python.net>
Wed, 30 Mar 2005 16:41:55 +0000 (16:41 +0000)
commit a yelp about a noted flaw the error messages for METH_KEYWORDS
functions under some circumstances.

Python/getargs.c

index 48f9dc481d0a9a5018d1fbe61ab821882edf26b5..e89f0d587cd376e1c9bf31b0d51d38bb3458c703 100644 (file)
@@ -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),