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

Function PyObject_StdStringStr

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

Source from the content-addressed store, hash-verified

128}
129
130Status PyObject_StdStringStr(PyObject* obj, std::string* out) {
131 OwnedRef string_ref(PyObject_Str(obj));
132 RETURN_IF_PYERROR();
133 return PyUnicode_AsStdString(string_ref.obj(), out);
134}
135
136Result<bool> IsModuleImported(const std::string& module_name) {
137 // PyImport_GetModuleDict returns with a borrowed reference

Callers 7

IntegerOverflowStatusFunction · 0.85
TestRestorePyErrorBasicsFunction · 0.85
ConvertPyErrorFunction · 0.85
PythonDecimalToStringFunction · 0.85
VisitStringMethod · 0.85

Calls 1

PyUnicode_AsStdStringFunction · 0.85

Tested by 1

TestRestorePyErrorBasicsFunction · 0.68