Skip to content

Commit e139a50

Browse files
committed
Unique list tracking
1 parent 80d0a85 commit e139a50

9 files changed

Lines changed: 1079 additions & 967 deletions

File tree

Include/internal/pycore_list.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ PyAPI_FUNC(PyObject*) _PyList_Extend(PyListObject *, PyObject *);
1616
PyAPI_FUNC(PyObject) *_PyList_SliceSubscript(PyObject*, PyObject*);
1717
PyAPI_FUNC(PyObject *) _PyList_BinarySlice(PyObject *, PyObject *, PyObject *);
1818
extern void _PyList_DebugMallocStats(FILE *out);
19+
PyAPI_FUNC(void) _PyStolenList_Free(PyObject *self);
1920
// _PyList_GetItemRef should be used only when the object is known as a list
2021
// because it doesn't raise TypeError when the object is not a list, whereas PyList_GetItemRef does.
2122
PyAPI_FUNC(PyObject *) _PyList_GetItemRef(PyListObject *, Py_ssize_t i);

0 commit comments

Comments
 (0)