mirror of
https://github.com/python/cpython.git
synced 2025-10-06 07:02:33 +00:00
GH-84436: Skip refcounting for known immortals (GH-107605)
This commit is contained in:
parent
ec0a0d2bd9
commit
05a824f294
19 changed files with 52 additions and 65 deletions
|
@ -106,8 +106,8 @@ range_from_array(PyTypeObject *type, PyObject *const *args, Py_ssize_t num_args)
|
|||
if (!stop) {
|
||||
return NULL;
|
||||
}
|
||||
start = Py_NewRef(_PyLong_GetZero());
|
||||
step = Py_NewRef(_PyLong_GetOne());
|
||||
start = _PyLong_GetZero();
|
||||
step = _PyLong_GetOne();
|
||||
break;
|
||||
case 0:
|
||||
PyErr_SetString(PyExc_TypeError,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue