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

Function ImportModule

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

Source from the content-addressed store, hash-verified

142}
143
144Status ImportModule(const std::string& module_name, OwnedRef* ref) {
145 PyObject* module = PyImport_ImportModule(module_name.c_str());
146 RETURN_IF_PYERROR();
147 ref->reset(module);
148 return Status::OK();
149}
150
151Status ImportFromModule(PyObject* module, const std::string& name, OwnedRef* ref) {
152 PyObject* attr = PyObject_GetAttrString(module, name.c_str());

Calls 2

OKFunction · 0.50
resetMethod · 0.45