MCPcopy Create free account
hub / github.com/chokkan/crfsuite / PyBool_FromLong

Function PyBool_FromLong

swig/python/export_wrap.cpp:892–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

890/* PyBool_FromLong for old Pythons */
891#if PY_VERSION_HEX < 0x02030000
892static
893PyObject *PyBool_FromLong(long ok)
894{
895 PyObject *result = ok ? Py_True : Py_False;
896 Py_INCREF(result);
897 return result;
898}
899#endif
900
901/* Py_ssize_t for old Pythons */

Callers 3

SwigPyObject_richcompareFunction · 0.85
export_wrap.cppFile · 0.85
SWIG_From_boolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected