Home
last modified time | relevance | path

Searched refs:PyUnicode_InternFromString (Results 1 – 25 of 46) sorted by relevance

12

/external/python/cpython3/Objects/
Dboolobject.c18 (true_str = PyUnicode_InternFromString("True")); in bool_repr()
21 (false_str = PyUnicode_InternFromString("False")); in bool_repr()
Dclassobject.c164 docstr= PyUnicode_InternFromString("__doc__"); in method_get_doc()
412 docstr = PyUnicode_InternFromString("__doc__"); in instancemethod_get_doc()
Dfuncobject.c18 __name__ = PyUnicode_InternFromString("__name__"); in PyFunction_NewWithQualName()
Dexceptions.c2996 print_prefix = PyUnicode_InternFromString("print "); in _check_for_legacy_statements()
3012 exec_prefix = PyUnicode_InternFromString("exec "); in _check_for_legacy_statements()
/external/python/cpython3/Python/
DPython-ast.c475 if ((state->__dict__ = PyUnicode_InternFromString("__dict__")) == NULL) return 0; in init_identifiers()
476 if ((state->__doc__ = PyUnicode_InternFromString("__doc__")) == NULL) return 0; in init_identifiers()
477 if ((state->__module__ = PyUnicode_InternFromString("__module__")) == NULL) return 0; in init_identifiers()
478 if ((state->_attributes = PyUnicode_InternFromString("_attributes")) == NULL) return 0; in init_identifiers()
479 if ((state->_fields = PyUnicode_InternFromString("_fields")) == NULL) return 0; in init_identifiers()
480 if ((state->annotation = PyUnicode_InternFromString("annotation")) == NULL) return 0; in init_identifiers()
481 if ((state->arg = PyUnicode_InternFromString("arg")) == NULL) return 0; in init_identifiers()
482 if ((state->args = PyUnicode_InternFromString("args")) == NULL) return 0; in init_identifiers()
483 if ((state->argtypes = PyUnicode_InternFromString("argtypes")) == NULL) return 0; in init_identifiers()
484 if ((state->asname = PyUnicode_InternFromString("asname")) == NULL) return 0; in init_identifiers()
[all …]
Dast_unparse.c926 !(_str_open_br = PyUnicode_InternFromString("{"))) { in maybe_init_static_strings()
930 !(_str_dbl_open_br = PyUnicode_InternFromString("{{"))) { in maybe_init_static_strings()
934 !(_str_close_br = PyUnicode_InternFromString("}"))) { in maybe_init_static_strings()
938 !(_str_dbl_close_br = PyUnicode_InternFromString("}}"))) { in maybe_init_static_strings()
Dimport.c754 nameobj = PyUnicode_InternFromString(name); in _PyImport_FixupBuiltin()
833 nameobj = PyUnicode_InternFromString(name); in _PyImport_FindBuiltin()
1467 nameobj = PyUnicode_InternFromString(name); in PyImport_ImportFrozenModule()
2028 import_str = PyUnicode_InternFromString("__import__"); in PyImport_Import()
2031 builtins_str = PyUnicode_InternFromString("__builtins__"); in PyImport_Import()
Dcompile.c327 __doc__ = PyUnicode_InternFromString("__doc__"); in PyAST_CompileObject()
332 __annotations__ = PyUnicode_InternFromString("__annotations__"); in PyAST_CompileObject()
1825 module = PyUnicode_InternFromString("<module>"); in compiler_mod()
2098 return_str = PyUnicode_InternFromString("return"); in compiler_visit_annotations()
2341 str = PyUnicode_InternFromString("__name__"); in compiler_class()
2349 str = PyUnicode_InternFromString("__module__"); in compiler_class()
2358 str = PyUnicode_InternFromString("__qualname__"); in compiler_class()
2373 str = PyUnicode_InternFromString("__class__"); in compiler_class()
2388 str = PyUnicode_InternFromString("__classcell__"); in compiler_class()
2654 name = PyUnicode_InternFromString("<lambda>"); in compiler_lambda()
[all …]
/external/python/cpython3/Modules/
D_json.c892 cstr = PyUnicode_InternFromString(constant); in _parse_constant()
1313 s_null = PyUnicode_InternFromString("null"); in _encoded_const()
1321 s_true = PyUnicode_InternFromString("true"); in _encoded_const()
1329 s_false = PyUnicode_InternFromString("false"); in _encoded_const()
1507 open_dict = PyUnicode_InternFromString("{"); in encoder_listencode_dict()
1508 close_dict = PyUnicode_InternFromString("}"); in encoder_listencode_dict()
1509 empty_dict = PyUnicode_InternFromString("{}"); in encoder_listencode_dict()
1661 open_array = PyUnicode_InternFromString("["); in encoder_listencode_list()
1662 close_array = PyUnicode_InternFromString("]"); in encoder_listencode_list()
1663 empty_array = PyUnicode_InternFromString("[]"); in encoder_listencode_list()
D_posixsubprocess.c1014 get_posixsubprocess_state(m)->disable = PyUnicode_InternFromString("disable"); in PyInit__posixsubprocess()
1015 get_posixsubprocess_state(m)->enable = PyUnicode_InternFromString("enable"); in PyInit__posixsubprocess()
1016 get_posixsubprocess_state(m)->isenabled = PyUnicode_InternFromString("isenabled"); in PyInit__posixsubprocess()
D_xxsubinterpretersmodule.c1739 return PyUnicode_InternFromString("send"); in channelid_end()
1742 return PyUnicode_InternFromString("recv"); in channelid_end()
1744 return PyUnicode_InternFromString("both"); in channelid_end()
D_threadmodule.c1624 str_dict = PyUnicode_InternFromString("__dict__"); in PyInit__thread()
/external/tensorflow/tensorflow/python/framework/
Dpython_tensor_converter.cc29 #define PY_STRING_INTERN_FROM_STRING(x) (PyUnicode_InternFromString(x))
Dpython_tensor_converter_wrapper.cc32 #define PY_STRING_INTERN_FROM_STRING(x) (PyUnicode_InternFromString(x))
Dpython_api_dispatcher.cc43 static PyObject* attr = PyUnicode_InternFromString("__tf_dispatch__"); in GetAttr_TFDispatch()
Dpython_api_parameter_converter.cc32 #define PY_STRING_INTERN_FROM_STRING(x) (PyUnicode_InternFromString(x))
Dpython_api_info.cc42 #define PY_STRING_INTERN_FROM_STRING(x) (PyUnicode_InternFromString(x))
/external/tensorflow/tensorflow/python/util/
Dfunction_parameter_canonicalizer.cc36 return PyUnicode_InternFromString(str); in PyUnicodeInternFromStringCompat()
/external/python/cpython3/Modules/_ctypes/
Dcallbacks.c483 context = PyUnicode_InternFromString("_ctypes.DllGetClassObject"); in Call_GetClassObject()
556 context = PyUnicode_InternFromString("_ctypes.DllCanUnloadNow"); in Call_CanUnloadNow()
/external/python/cpython3/Modules/_io/
D_iomodule.c766 !(_PyIO_str_ ## name = PyUnicode_InternFromString(# name))) \ in PyInit__io()
795 !(_PyIO_str_nl = PyUnicode_InternFromString("\n"))) in PyInit__io()
/external/python/markupsafe/src/markupsafe/
D_speedups.c193 id_html = PyUnicode_InternFromString("__html__"); in escape()
/external/python/cpython3/Include/
Dunicodeobject.h265 PyAPI_FUNC(PyObject *) PyUnicode_InternFromString(
/external/python/cpython3/PC/
Dpython3.def695 PyUnicode_InternFromString=python39.PyUnicode_InternFromString
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tensor.cc413 PyObject* created_method_name = PyUnicode_InternFromString("created"); in MaybeInvokeCreatedOnEagerTensorProfiler()
/external/python/cpython3/Parser/pegen/
Dpegen.c99 PyObject *form = PyUnicode_InternFromString("NFKC"); in _PyPegen_new_identifier()
1438 PyObject *str = PyUnicode_InternFromString("*"); in _PyPegen_alias_for_star()

12