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

Function PyObject_StdStringStr

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

Source from the content-addressed store, hash-verified

129}
130
131Status PyObject_StdStringStr(PyObject* obj, std::string* out) {
132 OwnedRef string_ref(PyObject_Str(obj));
133 RETURN_IF_PYERROR();
134 return PyUnicode_AsStdString(string_ref.obj(), out);
135}
136
137Result<bool> IsModuleImported(const std::string& module_name) {
138 // 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