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

Function PyLong_IsZero

asyncpg/protocol/record/pythoncapi_compat.h:1562–1569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1560}
1561
1562static inline int PyLong_IsZero(PyObject *obj)
1563{
1564 if (!PyLong_Check(obj)) {
1565 PyErr_Format(PyExc_TypeError, "expected int, got %s", Py_TYPE(obj)->tp_name);
1566 return -1;
1567 }
1568 return _PyLong_Sign(obj) == 0;
1569}
1570#endif
1571
1572

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected