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

Function _Py_XNewRef

asyncpg/protocol/record/pythoncapi_compat.h:75–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73// bpo-42262 added Py_XNewRef() to Python 3.10.0a3
74#if PY_VERSION_HEX < 0x030A00A3 && !defined(Py_XNewRef)
75static inline PyObject* _Py_XNewRef(PyObject *obj)
76{
77 Py_XINCREF(obj);
78 return obj;
79}
80#define Py_XNewRef(obj) _Py_XNewRef(_PyObject_CAST(obj))
81#endif
82

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected