mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Support %zd in PyErr_Format and PyString_FromFormat.
This commit is contained in:
parent
26efe402c2
commit
2c95cc6d72
8 changed files with 35 additions and 19 deletions
|
@ -3372,10 +3372,9 @@ check_num_args(PyObject *ob, int n)
|
|||
}
|
||||
if (n == PyTuple_GET_SIZE(ob))
|
||||
return 1;
|
||||
/* XXX %zd? */
|
||||
PyErr_Format(
|
||||
PyExc_TypeError,
|
||||
"expected %d arguments, got %d", n, (int)PyTuple_GET_SIZE(ob));
|
||||
"expected %d arguments, got %zd", n, PyTuple_GET_SIZE(ob));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue