Lines Matching defs:str
268 PyObject *str = PyUnicode_Substring(fmt, start, pos);
269 /* str = str.replace('%%', '%') */
270 if (str && has_percents) {
273 Py_SETREF(str, PyUnicode_Replace(str, &_Py_STR(dbl_percent),
276 if (!str) {
280 if (_PyArena_AddPyObject(arena, str) < 0) {
281 Py_DECREF(str);
284 return _PyAST_Constant(str, NULL, -1, -1, -1, -1, arena);
370 PyObject *str = PyUnicode_FromString(buf);
371 if (str == NULL) {
374 if (_PyArena_AddPyObject(arena, str) < 0) {
375 Py_DECREF(str);
378 format_spec = _PyAST_Constant(str, NULL, -1, -1, -1, -1, arena);