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

Function PyFrame_GetCode

asyncpg/protocol/record/pythoncapi_compat.h:153–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151// bpo-40421 added PyFrame_GetCode() to Python 3.9.0b1
152#if PY_VERSION_HEX < 0x030900B1 || defined(PYPY_VERSION)
153static inline PyCodeObject* PyFrame_GetCode(PyFrameObject *frame)
154{
155 assert(frame != _Py_NULL);
156 assert(frame->f_code != _Py_NULL);
157 return _Py_CAST(PyCodeObject*, Py_NewRef(frame->f_code));
158}
159#endif
160
161static inline PyCodeObject* _PyFrame_GetCodeBorrow(PyFrameObject *frame)

Callers 1

_PyFrame_GetCodeBorrowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected