mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
This commit is contained in:
commit
f01e408c16
23 changed files with 58 additions and 48 deletions
|
@ -735,7 +735,7 @@ list_ass_item(PyListObject *a, Py_ssize_t i, PyObject *v)
|
|||
if (v == NULL)
|
||||
return list_ass_slice(a, i, i+1, v);
|
||||
Py_INCREF(v);
|
||||
Py_XSETREF(a->ob_item[i], v);
|
||||
Py_SETREF(a->ob_item[i], v);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue