Skip to content

Commit 6bf65c7

Browse files
eendebakptambv
authored andcommitted
update comment
1 parent ce8c2e0 commit 6bf65c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Objects/listobject.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ PyList_New(Py_ssize_t size)
297297
}
298298
}
299299
if (op == NULL) {
300-
// do we still need this freelist? if so, we could store it at small_lists[0] with some special casing
300+
// the size based freelist was empty, so we try the general freelist
301301
op = _Py_FREELIST_POP(PyListObject, lists);
302302
if (op == NULL) {
303303
op = PyObject_GC_New(PyListObject, &PyList_Type);

0 commit comments

Comments
 (0)