MCPcopy Create free account
hub / github.com/apache/arrow / CIntFromPython

Function CIntFromPython

python/pyarrow/src/arrow/python/helpers.cc:267–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265
266template <typename Int>
267Status CIntFromPython(PyObject* obj, Int* out, const std::string& overflow_message) {
268 if (PyBool_Check(obj)) {
269 return Status::TypeError("Expected integer, got bool");
270 }
271 return CIntFromPythonImpl(obj, out, overflow_message);
272}
273
274template Status CIntFromPython(PyObject*, int8_t*, const std::string&);
275template Status CIntFromPython(PyObject*, int16_t*, const std::string&);

Callers 2

FieldMethod · 0.85
ConvertMethod · 0.85

Calls 2

CIntFromPythonImplFunction · 0.85
TypeErrorFunction · 0.50

Tested by

no test coverage detected