Lines Matching refs:str_value
935 PyObject *str_value = PyObject_Str(op);
937 if (!str_value) throw error_already_set();
938 PyObject *unicode = PyUnicode_FromEncodedObject(str_value, "utf-8", nullptr);
939 Py_XDECREF(str_value); str_value = unicode;
941 return str_value;
1385 PyObject *str_value = PyObject_Repr(h.ptr());
1386 if (!str_value) throw error_already_set();
1388 PyObject *unicode = PyUnicode_FromEncodedObject(str_value, "utf-8", nullptr);
1389 Py_XDECREF(str_value); str_value = unicode;
1390 if (!str_value) throw error_already_set();
1392 return reinterpret_steal<str>(str_value);