Home
last modified time | relevance | path

Searched refs:PyUnicode_InternFromString (Results 1 – 25 of 45) 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()
/external/python/cpython3/Python/
DPython-ast.c273 if ((state->__dict__ = PyUnicode_InternFromString("__dict__")) == NULL) return 0; in init_identifiers()
274 if ((state->__doc__ = PyUnicode_InternFromString("__doc__")) == NULL) return 0; in init_identifiers()
275 if ((state->__match_args__ = PyUnicode_InternFromString("__match_args__")) == NULL) return 0; in init_identifiers()
276 if ((state->__module__ = PyUnicode_InternFromString("__module__")) == NULL) return 0; in init_identifiers()
277 if ((state->_attributes = PyUnicode_InternFromString("_attributes")) == NULL) return 0; in init_identifiers()
278 if ((state->_fields = PyUnicode_InternFromString("_fields")) == NULL) return 0; in init_identifiers()
279 if ((state->annotation = PyUnicode_InternFromString("annotation")) == NULL) return 0; in init_identifiers()
280 if ((state->arg = PyUnicode_InternFromString("arg")) == NULL) return 0; in init_identifiers()
281 if ((state->args = PyUnicode_InternFromString("args")) == NULL) return 0; in init_identifiers()
282 if ((state->argtypes = PyUnicode_InternFromString("argtypes")) == NULL) return 0; in init_identifiers()
[all …]
Dast_unparse.c931 !(_str_open_br = PyUnicode_InternFromString("{"))) { in maybe_init_static_strings()
935 !(_str_dbl_open_br = PyUnicode_InternFromString("{{"))) { in maybe_init_static_strings()
939 !(_str_close_br = PyUnicode_InternFromString("}"))) { in maybe_init_static_strings()
943 !(_str_dbl_close_br = PyUnicode_InternFromString("}}"))) { in maybe_init_static_strings()
Dcompile.c414 __doc__ = PyUnicode_InternFromString("__doc__"); in _PyAST_Compile()
419 __annotations__ = PyUnicode_InternFromString("__annotations__"); in _PyAST_Compile()
1945 module = PyUnicode_InternFromString("<module>"); in compiler_mod()
2219 return_str = PyUnicode_InternFromString("return"); in compiler_visit_annotations()
2461 str = PyUnicode_InternFromString("__name__"); in compiler_class()
2469 str = PyUnicode_InternFromString("__module__"); in compiler_class()
2478 str = PyUnicode_InternFromString("__qualname__"); in compiler_class()
2495 str = PyUnicode_InternFromString("__class__"); in compiler_class()
2510 str = PyUnicode_InternFromString("__classcell__"); in compiler_class()
2779 name = PyUnicode_InternFromString("<lambda>"); in compiler_lambda()
[all …]
Dimport.c490 nameobj = PyUnicode_InternFromString(name); in _PyImport_FixupBuiltin()
1213 nameobj = PyUnicode_InternFromString(name); in PyImport_ImportFrozenModule()
Dsysmodule.c149 PyObject *key = v ? PyUnicode_InternFromString(name) in sys_set_object_str()
938 name = PyUnicode_InternFromString(whatnames[i]); in trace_init()
D_warnings.c64 modname_obj = PyUnicode_InternFromString(modname); in create_filter()
/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_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.cc37 return PyUnicode_InternFromString(str); in PyUnicodeInternFromStringCompat()
/external/python/cpython3/Modules/_io/
D_iomodule.c781 !(_PyIO_str_ ## name = PyUnicode_InternFromString(# name))) \ in PyInit__io()
811 !(_PyIO_str_nl = PyUnicode_InternFromString("\n"))) in PyInit__io()
/external/python/cpython3/Modules/_ctypes/
Dcallbacks.c484 context = PyUnicode_InternFromString("_ctypes.DllGetClassObject"); in Call_GetClassObject()
557 context = PyUnicode_InternFromString("_ctypes.DllCanUnloadNow"); in Call_CanUnloadNow()
/external/python/markupsafe/src/markupsafe/
D_speedups.c193 id_html = PyUnicode_InternFromString("__html__"); in escape()
/external/python/cpython3/Include/
Dunicodeobject.h264 PyAPI_FUNC(PyObject *) PyUnicode_InternFromString(
/external/python/cpython3/Modules/
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()
/external/cronet/third_party/protobuf/python/google/protobuf/pyext/
Ddescriptor.cc638 return PyUnicode_InternFromString( in GetSyntax()
1452 return PyUnicode_InternFromString( in GetSyntax()
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor.cc638 return PyUnicode_InternFromString( in GetSyntax()
1452 return PyUnicode_InternFromString( in GetSyntax()
/external/webp/swig/
Dlibwebp_python_wrap.c759 #define PyString_InternFromString(key) PyUnicode_InternFromString(key)
5204 return PyUnicode_InternFromString("<Swig global variables>"); in swig_varlink_repr()
5213 PyObject *str = PyUnicode_InternFromString("("); in swig_varlink_str()
5224 tail = PyUnicode_InternFromString(", "); in swig_varlink_str()
5231 tail = PyUnicode_InternFromString(")"); in swig_varlink_str()
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tensor.cc471 PyObject* created_method_name = PyUnicode_InternFromString("created"); in MaybeInvokeCreatedOnEagerTensorProfiler()
/external/python/cpython3/PC/
Dpython3dll.c670 EXPORT_FUNC(PyUnicode_InternFromString)
/external/python/cpython3/Doc/data/
Dstable_abi.dat745 function,PyUnicode_InternFromString,3.2,
/external/python/cpython3/Parser/
Dpegen.c113 PyObject *form = PyUnicode_InternFromString("NFKC"); in _PyPegen_new_identifier()
1692 PyObject *str = PyUnicode_InternFromString("*"); in _PyPegen_alias_for_star()

12