mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
In BUILD_LIST, use PyList_SET_ITEM() instead of PyList_SetItem(); and
get rid of redundant error check.
This commit is contained in:
parent
c96417980c
commit
5053efc2c4
1 changed files with 1 additions and 3 deletions
|
@ -1360,9 +1360,7 @@ eval_code2(co, globals, locals,
|
|||
if (x != NULL) {
|
||||
for (; --oparg >= 0;) {
|
||||
w = POP();
|
||||
err = PyList_SetItem(x, oparg, w);
|
||||
if (err != 0)
|
||||
break;
|
||||
PyList_SET_ITEM(x, oparg, w);
|
||||
}
|
||||
PUSH(x);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue