We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a4d8b8 commit 22cc928Copy full SHA for 22cc928
Objects/listobject.c
@@ -3258,9 +3258,7 @@ _PyList_AsTupleAndClear(PyListObject *self)
3258
Py_BEGIN_CRITICAL_SECTION(self);
3259
PyObject **items = self->ob_item;
3260
Py_ssize_t size = Py_SIZE(self);
3261
- self->ob_item = NULL;
3262
Py_SET_SIZE(self, 0);
3263
- self->allocated = 0;
3264
ret = _PyTuple_FromArraySteal(items, size);
3265
free_list_items(items, false);
3266
Py_END_CRITICAL_SECTION();
0 commit comments