Lines Matching defs:pystr
59 PyObject *pystr = NULL;
68 pystr = PyUnicode_AsUTF8String(pyobj);
69 if (!pystr) {
74 str = PyBytes_AsString(pystr);
76 /* Maybe pystr wasn't a valid object. An exception is already set.
78 Py_DECREF(pystr);
92 Py_DECREF(pystr);
265 PyObject *pystr = NULL;
273 pystr = PyUnicode_AsUTF8String(arg);
274 if (!pystr)
277 str = PyBytes_AsString(pystr);
286 Py_DECREF(pystr);