diff options
author | Victor Stinner <vstinner@python.org> | 2023-10-02 17:24:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 17:24:08 (GMT) |
commit | fc2cb86d210555d509debaeefd370d5331cd9d93 (patch) | |
tree | ebbe2b02c0ff0b0c0cab825b52d79ccf3e99fb18 /Objects/dictobject.c | |
parent | 6387b5313c60c1403785b2245db33372476ac304 (diff) | |
download | cpython-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.c | 4 |
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) { |