MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / PyObject_VisitManagedDict

Function PyObject_VisitManagedDict

asyncpg/protocol/record/pythoncapi_compat.h:923–932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921// gh-107073 added PyObject_VisitManagedDict() to Python 3.13.0a1
922#if PY_VERSION_HEX < 0x030D00A1
923static inline int
924PyObject_VisitManagedDict(PyObject *obj, visitproc visit, void *arg)
925{
926 PyObject **dict = _PyObject_GetDictPtr(obj);
927 if (dict == NULL || *dict == NULL) {
928 return -1;
929 }
930 Py_VISIT(*dict);
931 return 0;
932}
933
934static inline void
935PyObject_ClearManagedDict(PyObject *obj)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected