Home
last modified time | relevance | path

Searched refs:PyUnicode_AsUTF8 (Results 1 – 25 of 48) sorted by relevance

12

/external/tensorflow/tensorflow/python/lib/core/
Dpy_util.cc91 strings::StrAppend(out, PyUnicode_AsUTF8(v), "\n"); in TryAppendTraceback()
115 strings::StrAppend(&err, ": ", PyUnicode_AsUTF8(str), "\n"); in PyExceptionFetch()
/external/python/cpython3/Objects/
Dmoduleobject.c261 name = PyUnicode_AsUTF8(nameobj); in PyModule_FromDefAndSpec2()
514 return PyUnicode_AsUTF8(name); in PyModule_GetName()
547 utf8 = PyUnicode_AsUTF8(fileobj); in PyModule_GetFilename()
600 const char *s = PyUnicode_AsUTF8(key); in _PyModule_ClearDict()
620 const char *s = PyUnicode_AsUTF8(key); in _PyModule_ClearDict()
Dstructseq.c205 crepr = PyUnicode_AsUTF8(repr); in structseq_repr()
Dobject.c914 const char *name_str = PyUnicode_AsUTF8(name); in PyObject_GetAttr()
952 const char *name_str = PyUnicode_AsUTF8(name); in _PyObject_LookupAttr()
1021 const char *name_str = PyUnicode_AsUTF8(name); in PyObject_SetAttr()
/external/python/cpython3/Modules/_io/
Dtextio.c706 return _PyUnicode_AsASCIIString(text, PyUnicode_AsUTF8(self->errors)); in ascii_encode()
713 PyUnicode_AsUTF8(self->errors), 1); in utf16be_encode()
720 PyUnicode_AsUTF8(self->errors), -1); in utf16le_encode()
735 PyUnicode_AsUTF8(self->errors), 0); in utf16_encode()
742 PyUnicode_AsUTF8(self->errors), 1); in utf32be_encode()
749 PyUnicode_AsUTF8(self->errors), -1); in utf32le_encode()
764 PyUnicode_AsUTF8(self->errors), 0); in utf32_encode()
770 return _PyUnicode_AsUTF8String(text, PyUnicode_AsUTF8(self->errors)); in utf8_encode()
776 return _PyUnicode_AsLatin1String(text, PyUnicode_AsUTF8(self->errors)); in latin1_encode()
1128 encoding = PyUnicode_AsUTF8(self->encoding); in _io_TextIOWrapper___init___impl()
[all …]
/external/python/cpython3/Modules/_sqlite/
Drow.c101 key = PyUnicode_AsUTF8(idx); in pysqlite_row_subscript()
111 compare_key = PyUnicode_AsUTF8(obj); in pysqlite_row_subscript()
Dconnection.c514 const char *str = PyUnicode_AsUTF8(py_val); in _pysqlite_set_result()
1639 uppercase_name_str = PyUnicode_AsUTF8(uppercase_name); in pysqlite_connection_create_collation()
/external/python/cpython3/Modules/
Dsyslogmodule.c142 ident = PyUnicode_AsUTF8(S_ident_o); in syslog_openlog()
169 message = PyUnicode_AsUTF8(message_object); in syslog_syslog()
/external/python/cpython3/Misc/
Dgdbinit40 set $_name = PyUnicode_AsUTF8(PyTuple_GetItem($_names, $_i))
79 set $__fn = PyUnicode_AsUTF8(f->f_code->co_filename)
80 set $__n = PyUnicode_AsUTF8(f->f_code->co_name)
/external/python/cpython3/Python/
Dfuture.c24 const char *feature = PyUnicode_AsUTF8(name->name); in future_check_features()
Dimportdl.c154 _Py_PackageContext = PyUnicode_AsUTF8(name_unicode); in _PyImport_LoadDynamicModuleWithSpec()
Dpythonrun.c198 enc = PyUnicode_AsUTF8(oenc); in PyRun_InteractiveOneObjectEx()
209 ps1 = PyUnicode_AsUTF8(v); in PyRun_InteractiveOneObjectEx()
222 ps2 = PyUnicode_AsUTF8(w); in PyRun_InteractiveOneObjectEx()
551 text = PyUnicode_AsUTF8(text_obj); in print_error_text()
Dimport.c1181 namestr = PyUnicode_AsUTF8(name); in _imp_create_builtin()
1644 PyDTrace_IMPORT_FIND_LOAD_START(PyUnicode_AsUTF8(abs_name)); in import_find_and_load()
1651 PyDTrace_IMPORT_FIND_LOAD_DONE(PyUnicode_AsUTF8(abs_name), in import_find_and_load()
1661 import_level*2, "", PyUnicode_AsUTF8(abs_name)); in import_find_and_load()
Dbltinmodule.c2045 stdin_encoding_str = PyUnicode_AsUTF8(stdin_encoding); in builtin_input_impl()
2046 stdin_errors_str = PyUnicode_AsUTF8(stdin_errors); in builtin_input_impl()
2066 stdout_encoding_str = PyUnicode_AsUTF8(stdout_encoding); in builtin_input_impl()
2067 stdout_errors_str = PyUnicode_AsUTF8(stdout_errors); in builtin_input_impl()
Dceval.c4500 return PyUnicode_AsUTF8(((PyFunctionObject*)func)->func_name); in PyEval_GetFuncName()
4958 obj_str = PyUnicode_AsUTF8(obj); in format_exc_check_arg()
5124 filename = PyUnicode_AsUTF8(f->f_code->co_filename); in dtrace_function_entry()
5125 funcname = PyUnicode_AsUTF8(f->f_code->co_name); in dtrace_function_entry()
5138 filename = PyUnicode_AsUTF8(f->f_code->co_filename); in dtrace_function_return()
5139 funcname = PyUnicode_AsUTF8(f->f_code->co_name); in dtrace_function_return()
5168 co_filename = PyUnicode_AsUTF8(frame->f_code->co_filename); in maybe_dtrace_line()
5171 co_name = PyUnicode_AsUTF8(frame->f_code->co_name); in maybe_dtrace_line()
Dcompile.c1577 PyUnicode_AsUTF8(name), in get_ref_type()
1578 PyUnicode_AsUTF8(c->u->u_name), in get_ref_type()
1579 PyUnicode_AsUTF8(PyObject_Repr(c->u->u_ste->ste_id)), in get_ref_type()
1580 PyUnicode_AsUTF8(PyObject_Repr(c->u->u_ste->ste_symbols)), in get_ref_type()
1581 PyUnicode_AsUTF8(PyObject_Repr(c->u->u_varnames)), in get_ref_type()
1582 PyUnicode_AsUTF8(PyObject_Repr(c->u->u_names)) in get_ref_type()
1634 PyUnicode_AsUTF8(PyObject_Repr(name)), in compiler_make_closure()
1635 PyUnicode_AsUTF8(c->u->u_name), in compiler_make_closure()
1637 PyUnicode_AsUTF8(co->co_name), in compiler_make_closure()
1638 PyUnicode_AsUTF8(PyObject_Repr(co->co_freevars))); in compiler_make_closure()
Dcodecs.c1151 if (!(encoding = PyUnicode_AsUTF8(encode))) { in PyCodec_SurrogatePassErrors()
1230 if (!(encoding = PyUnicode_AsUTF8(encode))) { in PyCodec_SurrogatePassErrors()
Dpylifecycle.c252 name_utf8 = PyUnicode_AsUTF8(name); in get_codec_name()
1953 const char *std_encoding = PyUnicode_AsUTF8(encoding_attr); in init_sys_streams()
/external/tensorflow/tensorflow/python/util/
Dutil.cc59 key = PyUnicode_AsUTF8(type_name); in RegisterType()
142 string s(PyUnicode_AsUTF8(str)); in PyObjectToString()
/external/python/cpython3/Modules/cjkcodecs/
Dcjkcodecs.h270 enc = PyUnicode_AsUTF8(encoding); in getcodec()
Dmultibytecodec.c88 str = PyUnicode_AsUTF8(errors); in call_error_callback()
145 str = PyUnicode_AsUTF8(value); in codecctx_errors_set()
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tensor.cc82 device = PyUnicode_AsUTF8(dev); in CopyToDevice()
924 module = PyUnicode_AsUTF8(base_class_module.get()); in TFE_Py_InitEagerTensor()
/external/python/cpython3/Include/
Dunicodeobject.h1165 PyAPI_FUNC(const char *) PyUnicode_AsUTF8(PyObject *unicode);
1166 #define _PyUnicode_AsString PyUnicode_AsUTF8
/external/python/cpython3/Modules/_ctypes/
Dstgdict.c520 const char *fieldname = PyUnicode_AsUTF8(name); in PyCStructUnionType_update_stgdict()
D_ctypes.c1809 switch (PyUnicode_AsUTF8(stgd->proto)[0]) { in c_void_p_from_param()
1925 fmt = PyUnicode_AsUTF8(dict->proto); in PyCSimpleType_paramfunc()
2153 fmt = PyUnicode_AsUTF8(dict->proto); in PyCSimpleType_from_param()
3230 && (strchr("PzZ", PyUnicode_AsUTF8(dict->proto)[0]))) { in _check_outarg_type()
3324 *pname = PyUnicode_AsUTF8(obj); in _get_name()
5339 && (strchr("sPzUZXO", PyUnicode_AsUTF8(dict->proto)[0]))) { in cast_check_pointertype()

12