Skip to content

Commit 47e841a

Browse files
authored
Revert in tupleobject.c
Removed unnecessary comment regarding memory calculation and the memory calculation itself.
1 parent 71e8db7 commit 47e841a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Objects/tupleobject.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,6 @@ _PyTuple_DebugMallocStats(FILE *out)
12741274
PyOS_snprintf(buf, sizeof(buf),
12751275
"free %d-sized PyTupleObject", len);
12761276
_PyDebugAllocatorStats(out, buf, _Py_FREELIST_SIZE(tuples[i]),
1277-
/* If you would like, you could remove the _PyType_PreHeaderSize(&PyTuple_Type) + to make it so that the freelist entries actual memory is calculated */
1278-
_PyType_PreHeaderSize(&PyTuple_Type) + _PyObject_VAR_SIZE(&PyTuple_Type, len));
1277+
_PyObject_VAR_SIZE(&PyTuple_Type, len));
12791278
}
12801279
}

0 commit comments

Comments
 (0)