Skip to content
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow tuples of length 20 in the freelist to be reused.
2 changes: 1 addition & 1 deletion Objects/tupleobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ maybe_freelist_pop(Py_ssize_t size)
return NULL;
}
assert(size > 0);
if (size < PyTuple_MAXSAVESIZE) {
if (size <= PyTuple_MAXSAVESIZE) {
Py_ssize_t index = size - 1;
PyTupleObject *op = TUPLE_FREELIST.items[index];
if (op != NULL) {
Expand Down