From 27055d766ab0ee5ddcfbd1fb51fb47419af1ddba Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Mon, 25 Jul 2022 22:30:53 +0100 Subject: GH-92678: Expose managed dict clear and visit functions (#95246) --- Include/cpython/dictobject.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Include/cpython') diff --git a/Include/cpython/dictobject.h b/Include/cpython/dictobject.h index 565ad791a6..c2e4a46e76 100644 --- a/Include/cpython/dictobject.h +++ b/Include/cpython/dictobject.h @@ -83,3 +83,6 @@ typedef struct { PyAPI_FUNC(PyObject *) _PyDictView_New(PyObject *, PyTypeObject *); PyAPI_FUNC(PyObject *) _PyDictView_Intersect(PyObject* self, PyObject *other); + +PyAPI_FUNC(int) _PyObject_VisitManagedDict(PyObject *self, visitproc visit, void *arg); +PyAPI_FUNC(void) _PyObject_ClearManagedDict(PyObject *self); -- cgit v1.2.1