mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -2598,9 +2598,8 @@ list_ass_subscript(PyListObject* self, PyObject* item, PyObject* value)
|
|||
}
|
||||
|
||||
if (PySequence_Fast_GET_SIZE(seq) != slicelength) {
|
||||
/* XXX can we use %zd here? */
|
||||
PyErr_Format(PyExc_ValueError,
|
||||
"attempt to assign sequence of size %ld to extended slice of size %ld",
|
||||
"attempt to assign sequence of size %zd to extended slice of size %zd",
|
||||
(long)PySequence_Fast_GET_SIZE(seq),
|
||||
(long)slicelength);
|
||||
Py_DECREF(seq);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue