MCPcopy Create free account
hub / github.com/apache/arrow / operator()

Method operator()

python/pyarrow/src/arrow/python/csv.cc:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 std::shared_ptr<OwnedRefNoGIL> handler_ref;
41
42 InvalidRowResult operator()(const InvalidRow& invalid_row) {
43 InvalidRowResult result;
44 auto st = SafeCallIntoPython([&]() -> Status {
45 result = cb(handler_ref->obj(), invalid_row);
46 if (PyErr_Occurred()) {
47 PyErr_WriteUnraisable(handler_ref->obj());
48 }
49 return Status::OK();
50 });
51 ARROW_UNUSED(st);
52 return result;
53 }
54 };
55
56 Py_INCREF(py_handler);

Callers

nothing calls this directly

Calls 2

SafeCallIntoPythonFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected