summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-10-02 17:24:08 (GMT)
committerGitHub <noreply@github.com>2023-10-02 17:24:08 (GMT)
commitfc2cb86d210555d509debaeefd370d5331cd9d93 (patch)
treeebbe2b02c0ff0b0c0cab825b52d79ccf3e99fb18 /Objects/dictobject.c
parent6387b5313c60c1403785b2245db33372476ac304 (diff)
downloadcpython-fc2cb86d210555d509debaeefd370d5331cd9d93.zip
cpython-fc2cb86d210555d509debaeefd370d5331cd9d93.tar.gz
cpython-fc2cb86d210555d509debaeefd370d5331cd9d93.tar.bz2
gh-107073: Make PyObject_VisitManagedDict() public (#108763)
Make PyObject_VisitManagedDict() and PyObject_ClearManagedDict() functions public in Python 3.13 C API. * Rename _PyObject_VisitManagedDict() to PyObject_VisitManagedDict(). * Rename _PyObject_ClearManagedDict() to PyObject_ClearManagedDict(). * Document these functions.
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r--Objects/dictobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 1fb795f..361f8e9 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -5649,7 +5649,7 @@ _PyObject_FreeInstanceAttributes(PyObject *self)
}
int
-_PyObject_VisitManagedDict(PyObject *obj, visitproc visit, void *arg)
+PyObject_VisitManagedDict(PyObject *obj, visitproc visit, void *arg)
{
PyTypeObject *tp = Py_TYPE(obj);
if((tp->tp_flags & Py_TPFLAGS_MANAGED_DICT) == 0) {
@@ -5672,7 +5672,7 @@ _PyObject_VisitManagedDict(PyObject *obj, visitproc visit, void *arg)
}
void
-_PyObject_ClearManagedDict(PyObject *obj)
+PyObject_ClearManagedDict(PyObject *obj)
{
PyTypeObject *tp = Py_TYPE(obj);
if((tp->tp_flags & Py_TPFLAGS_MANAGED_DICT) == 0) {