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.
This commit is contained in:
Michael W. Hudson 2005-03-30 16:41:55 +00:00
parent e2749cb264
commit 5253c30791
1 changed files with 2 additions and 1 deletions

View 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),