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

Function PyDict_PopString

asyncpg/protocol/record/pythoncapi_compat.h:1088–1102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1086}
1087
1088static inline int
1089PyDict_PopString(PyObject *dict, const char *key, PyObject **result)
1090{
1091 PyObject *key_obj = PyUnicode_FromString(key);
1092 if (key_obj == NULL) {
1093 if (result != NULL) {
1094 *result = NULL;
1095 }
1096 return -1;
1097 }
1098
1099 int res = PyDict_Pop(dict, key_obj, result);
1100 Py_DECREF(key_obj);
1101 return res;
1102}
1103#endif
1104
1105

Callers

nothing calls this directly

Calls 1

PyDict_PopFunction · 0.85

Tested by

no test coverage detected