MCPcopy Create free account
hub / github.com/numpy/numpy / PyRational_Check

Function PyRational_Check

numpy/core/src/umath/_rational_tests.c:370–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368static PyTypeObject PyRational_Type;
369
370static inline int
371PyRational_Check(PyObject* object) {
372 return PyObject_IsInstance(object,(PyObject*)&PyRational_Type);
373}
374
375static PyObject*
376PyRational_FromRational(rational x) {

Callers 2

pyrational_newFunction · 0.85
npyrational_setitemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected