mirror of
https://github.com/python/cpython.git
synced 2026-06-05 01:10:53 +00:00
gh-145192: improve performance of PySequence_GetSlice (#145193)
This commit is contained in:
parent
e8545ed3ea
commit
dfeeee990b
6 changed files with 17 additions and 21 deletions
|
|
@ -1116,7 +1116,8 @@ dummy_func(
|
|||
|
||||
op(_STORE_SLICE, (v, container, start, stop -- )) {
|
||||
PyObject *slice = _PyBuildSlice_ConsumeRefs(PyStackRef_AsPyObjectSteal(start),
|
||||
PyStackRef_AsPyObjectSteal(stop));
|
||||
PyStackRef_AsPyObjectSteal(stop),
|
||||
Py_None);
|
||||
int err;
|
||||
if (slice == NULL) {
|
||||
err = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue