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

Function Py_IsFinalizing

asyncpg/protocol/record/pythoncapi_compat.h:872–880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

870#if (0x030201B1 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x030D00A1) \
871 && (!defined(PYPY_VERSION_NUM) || PYPY_VERSION_NUM >= 0x7030000)
872static inline int Py_IsFinalizing(void)
873{
874#if PY_VERSION_HEX >= 0x030700A1
875 // _Py_IsFinalizing() was added to Python 3.7.0a1.
876 return _Py_IsFinalizing();
877#else
878 return (_Py_Finalizing != NULL);
879#endif
880}
881#endif
882
883

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected