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

Function ImportFromModule

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

Source from the content-addressed store, hash-verified

149}
150
151Status ImportFromModule(PyObject* module, const std::string& name, OwnedRef* ref) {
152 PyObject* attr = PyObject_GetAttrString(module, name.c_str());
153 RETURN_IF_PYERROR();
154 ref->reset(attr);
155 return Status::OK();
156}
157
158namespace {
159

Calls 2

OKFunction · 0.50
resetMethod · 0.45