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

Function _Py_NewRef

asyncpg/protocol/record/pythoncapi_compat.h:64–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62// bpo-42262 added Py_NewRef() to Python 3.10.0a3
63#if PY_VERSION_HEX < 0x030A00A3 && !defined(Py_NewRef)
64static inline PyObject* _Py_NewRef(PyObject *obj)
65{
66 Py_INCREF(obj);
67 return obj;
68}
69#define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj))
70#endif
71

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected