mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Revert 42400.
This commit is contained in:
parent
2c95cc6d72
commit
e0e89f7920
5 changed files with 11 additions and 11 deletions
|
@ -2600,8 +2600,8 @@ list_ass_subscript(PyListObject* self, PyObject* item, PyObject* value)
|
|||
if (PySequence_Fast_GET_SIZE(seq) != slicelength) {
|
||||
PyErr_Format(PyExc_ValueError,
|
||||
"attempt to assign sequence of size %zd to extended slice of size %zd",
|
||||
(long)PySequence_Fast_GET_SIZE(seq),
|
||||
(long)slicelength);
|
||||
PySequence_Fast_GET_SIZE(seq),
|
||||
slicelength);
|
||||
Py_DECREF(seq);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue