Skip to content

Commit 5baec94

Browse files
committed
update comment
1 parent a2670fc commit 5baec94

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
@@ -269,7 +269,7 @@ PyList_New(Py_ssize_t size)
269269
}
270270
}
271271
if (op == NULL) {
272-
// do we still need this freelist? if so, we could store it at small_lists[0] with some special casing
272+
// the size based freelist was empty, so we try the general freelist
273273
op = _Py_FREELIST_POP(PyListObject, lists);
274274
if (op == NULL) {
275275
op = PyObject_GC_New(PyListObject, &PyList_Type);

0 commit comments

Comments
 (0)