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

Function PyObject_ClearManagedDict

asyncpg/protocol/record/pythoncapi_compat.h:934–942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

932}
933
934static inline void
935PyObject_ClearManagedDict(PyObject *obj)
936{
937 PyObject **dict = _PyObject_GetDictPtr(obj);
938 if (dict == NULL || *dict == NULL) {
939 return;
940 }
941 Py_CLEAR(*dict);
942}
943#endif
944
945// gh-108867 added PyThreadState_GetUnchecked() to Python 3.13.0a1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected