Home
last modified time | relevance | path

Searched refs:_Py_STR (Results 1 - 17 of 17) sorted by relevance

/third_party/python/Python/
H A Dast_unparse.c578 temp = PyUnicode_Replace(orig, &_Py_STR(open_br), &_Py_STR(dbl_open_br), -1); in escape_braces()
582 result = PyUnicode_Replace(temp, &_Py_STR(close_br), &_Py_STR(dbl_close_br), -1); in escape_braces()
676 if (PyUnicode_Find(temp_fv_str, &_Py_STR(open_br), 0, 1, 1) == 0) { in append_formattedvalue()
H A Dast_opt.c273 Py_SETREF(str, PyUnicode_Replace(str, &_Py_STR(dbl_percent), in parse_literal()
274 &_Py_STR(percent), -1)); in parse_literal()
H A Dpythonrun.c519 *filename = &_Py_STR(anon_string); in parse_syntax_error()
1602 str, &_Py_STR(anon_string), start, flags, arena); in PyRun_StringFlags()
1605 ret = run_mod(mod, &_Py_STR(anon_string), globals, locals, flags, arena); in PyRun_StringFlags()
H A Dcompile.c774 &_Py_STR(dot_locals)); in compiler_set_qualname()
787 name = PyUnicode_Concat(base, &_Py_STR(dot)); in compiler_set_qualname()
2186 if (!compiler_enter_scope(c, &_Py_STR(anon_module), COMPILER_SCOPE_MODULE, in compiler_mod()
3029 if (!compiler_enter_scope(c, &_Py_STR(anon_lambda), COMPILER_SCOPE_LAMBDA, in compiler_lambda()
3992 ADDOP_NAME(c, IMPORT_NAME, &_Py_STR(empty), names); in compiler_from_import()
4961 ADDOP_LOAD_CONST_NEW(c, Py_NewRef(&_Py_STR(empty))); in compiler_joined_str()
5556 return compiler_comprehension(c, e, COMP_GENEXP, &_Py_STR(anon_genexpr), in compiler_genexp()
5566 return compiler_comprehension(c, e, COMP_LISTCOMP, &_Py_STR(anon_listcomp), in compiler_listcomp()
5576 return compiler_comprehension(c, e, COMP_SETCOMP, &_Py_STR(anon_setcomp), in compiler_setcomp()
5587 return compiler_comprehension(c, e, COMP_DICTCOMP, &_Py_STR(anon_dictcom in compiler_dictcomp()
[all...]
H A Dsysmodule.c721 if (PyFile_WriteObject(&_Py_STR(newline), outf, Py_PRINT_RAW) != 0) in sys_displayhook()
851 PyObject *ret = &_Py_STR(utf_8); in sys_getdefaultencoding_impl()
H A Dfileutils.c98 return Py_NewRef(&_Py_STR(utf_8)); in _Py_device_encoding()
H A Dceval.c3222 str = _PyUnicode_JoinArray(&_Py_STR(empty),
/third_party/python/Modules/_io/
H A D_iomodule.c487 encoding = &_Py_STR(utf_8); in _io_text_encoding_impl()
H A Dtextio.c1124 self->encoding = Py_NewRef(&_Py_STR(utf_8)); in _io_TextIOWrapper___init___impl()
1986 Py_XSETREF(result, PyUnicode_Join(&_Py_STR(empty), chunks)); in _io_TextIOWrapper_read_impl()
2251 line = PyUnicode_Join(&_Py_STR(empty), chunks); in _textiowrapper_readline()
2257 line = Py_NewRef(&_Py_STR(empty)); in _textiowrapper_readline()
H A Dstringio.c195 decoded, &_Py_STR(newline), self->writenl, -1); in write_str()
/third_party/python/Objects/
H A Dfuncobject.c701 Py_SETREF(op->func_name, Py_NewRef(&_Py_STR(empty))); in func_clear()
702 Py_SETREF(op->func_qualname, Py_NewRef(&_Py_STR(empty))); in func_clear()
H A Dlistobject.c251 PyErr_SetObject(PyExc_IndexError, &_Py_STR(list_err)); in PyList_GetItem()
461 PyErr_SetObject(PyExc_IndexError, &_Py_STR(list_err)); in list_item()
H A Dunicodeobject.c254 return &_Py_STR(empty); in unicode_get_empty()
1963 if (unicode == &_Py_STR(empty)) { in unicode_is_singleton()
15494 assert(_PyUnicode_CheckConsistency(&_Py_STR(empty), 1)); in _PyUnicode_InitGlobalObjects()
H A Dtypeobject.c4551 joined = PyUnicode_Join(&_Py_STR(comma_sep), sorted_methods); in object_new()
/third_party/python/Include/internal/
H A Dpycore_global_strings.h377 #define _Py_STR(NAME) \ macro
380 /* _Py_DECLARE_STR() should precede all uses of _Py_STR() in a function.
386 Pairing _Py_DECLARE_STR() with every use of _Py_STR() makes sure the
/third_party/python/Modules/
H A D_tracemalloc.c310 frame->filename = &_Py_STR(anon_unknown); in tracemalloc_get_frame()
918 tracemalloc_empty_traceback.frames[0].filename = &_Py_STR(anon_unknown); in tracemalloc_init()
H A D_pickle.c1817 dotted_path = PyUnicode_Split(name, &_Py_STR(dot), -1); in get_dotted_path()

Completed in 133 milliseconds