Skip to content

Commit 24cbdcf

Browse files
committed
gh-112075: Remove _PyObject_SetManagedDict() function
Move it to the internal C API and no longer export it.
1 parent 5a77f02 commit 24cbdcf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Include/cpython/object.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@ PyAPI_FUNC(int) _Py_ReachedRecursionLimitWithMargin(PyThreadState *tstate, int m
442442
PyAPI_FUNC(void *) PyObject_GetItemData(PyObject *obj);
443443

444444
PyAPI_FUNC(int) PyObject_VisitManagedDict(PyObject *obj, visitproc visit, void *arg);
445-
PyAPI_FUNC(int) _PyObject_SetManagedDict(PyObject *obj, PyObject *new_dict);
446445
PyAPI_FUNC(void) PyObject_ClearManagedDict(PyObject *obj);
447446

448447

Include/internal/pycore_object.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,8 @@ enum _PyAnnotateFormat {
10311031
_Py_ANNOTATE_FORMAT_STRING = 4,
10321032
};
10331033

1034-
int _PyObject_SetDict(PyObject *obj, PyObject *value);
1034+
extern int _PyObject_SetDict(PyObject *obj, PyObject *value);
1035+
extern int _PyObject_SetManagedDict(PyObject *obj, PyObject *new_dict);
10351036

10361037
#ifndef Py_GIL_DISABLED
10371038
static inline Py_ALWAYS_INLINE void _Py_INCREF_MORTAL(PyObject *op)

0 commit comments

Comments
 (0)