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

Function PyModule_Add

asyncpg/protocol/record/pythoncapi_compat.h:857–863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

855// gh-106307 added PyModule_Add() to Python 3.13.0a1
856#if PY_VERSION_HEX < 0x030D00A1
857static inline int
858PyModule_Add(PyObject *mod, const char *name, PyObject *value)
859{
860 int res = PyModule_AddObjectRef(mod, name, value);
861 Py_XDECREF(value);
862 return res;
863}
864#endif
865
866

Callers

nothing calls this directly

Calls 1

PyModule_AddObjectRefFunction · 0.85

Tested by

no test coverage detected