thiskw);
return 0;
}
+ else if (PyErr_Occurred())
+ return 0;
}
}
for (i = nargs; i < min; i++) {
if (PyDict_GetItemString(keywords, kwlist[i]))
len++;
+ else if (PyErr_Occurred())
+ return 0;
}
}
- PyErr_Clear();
-
+
/* 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
"number of items in format string and keyword list do not match");
return 0;
}
-
+
/* convert the keyword arguments; this uses the format
string where it was left after processing args */
converted = 0;
}
converted++;
}
+ else if (PyErr_Occurred())
+ return 0;
else {
- PyErr_Clear();
msg = skipitem(&format, p_va);
if (msg) {
seterror(i+1, msg, levels, fname, message);