Home
last modified time | relevance | path

Searched refs:PyUnicode_FromString (Results 1 – 25 of 128) sorted by relevance

123456

/external/python/cpython3/Modules/_sha3/
Dsha3module.c417 return PyUnicode_FromString("sha3_224"); in SHA3_get_name()
419 return PyUnicode_FromString("sha3_256"); in SHA3_get_name()
421 return PyUnicode_FromString("sha3_384"); in SHA3_get_name()
423 return PyUnicode_FromString("sha3_512"); in SHA3_get_name()
426 return PyUnicode_FromString("keccak_224"); in SHA3_get_name()
428 return PyUnicode_FromString("keccak_256"); in SHA3_get_name()
430 return PyUnicode_FromString("keccak_384"); in SHA3_get_name()
432 return PyUnicode_FromString("keccak_512"); in SHA3_get_name()
435 return PyUnicode_FromString("shake_128"); in SHA3_get_name()
437 return PyUnicode_FromString("shake_256"); in SHA3_get_name()
/external/python/cpython3/Python/
Ddynload_hpux.c45 buf_ob = PyUnicode_FromString(buf); in _PyImport_FindSharedFuncptr()
46 shortname_ob = PyUnicode_FromString(shortname); in _PyImport_FindSharedFuncptr()
47 pathname_ob = PyUnicode_FromString(pathname); in _PyImport_FindSharedFuncptr()
Ddynload_shlib.c105 error_ob = PyUnicode_FromString(error); in _PyImport_FindSharedFuncptr()
108 mod_name = PyUnicode_FromString(shortname); in _PyImport_FindSharedFuncptr()
113 path = PyUnicode_FromString(pathname); in _PyImport_FindSharedFuncptr()
Dsysmodule.c134 modulepath = PyUnicode_FromString("builtins"); in sys_breakpointhook()
309 newline = PyUnicode_FromString("\n"); in sys_displayhook()
386 return PyUnicode_FromString(PyUnicode_GetDefaultEncoding()); in sys_getdefaultencoding()
400 return PyUnicode_FromString(Py_FileSystemDefaultEncoding); in sys_getfilesystemencoding()
417 return PyUnicode_FromString(Py_FileSystemDefaultEncodeErrors); in sys_getfilesystemencodeerrors()
990 PyUnicode_FromString(hashfunc->name)); in get_hash_info()
1098 PyStructSequence_SET_ITEM(version, pos++, PyUnicode_FromString(ver.szCSDVersion)); in sys_getwindowsversion()
1617 PyObject *name = PyUnicode_FromString( in list_builtin_module_names()
2154 PyStructSequence_SET_ITEM(version_info, pos++, PyUnicode_FromString(flag)) in make_version_info()
2195 value = PyUnicode_FromString(_PySys_ImplName); in make_impl_info()
[all …]
Dthread.c188 value = PyUnicode_FromString(PYTHREAD_NAME); in PyThread_GetInfo()
197 value = PyUnicode_FromString("semaphore"); in PyThread_GetInfo()
199 value = PyUnicode_FromString("mutex+cond"); in PyThread_GetInfo()
D_warnings.c303 return PyUnicode_FromString("<unknown>"); in normalize_module()
621 importlib_string = PyUnicode_FromString("importlib"); in is_internal_frame()
626 bootstrap_string = PyUnicode_FromString("_bootstrap"); in is_internal_frame()
728 *module = PyUnicode_FromString("<string>"); in setup_context()
780 Py_SETREF(*filename, PyUnicode_FromString("__main__")); in setup_context()
787 *filename = PyUnicode_FromString("__main__"); in setup_context()
1061 PyObject *message = PyUnicode_FromString(text); in PyErr_WarnEx()
1102 PyObject *message = PyUnicode_FromString(text); in PyErr_WarnExplicit()
1110 module = PyUnicode_FromString(module_str); in PyErr_WarnExplicit()
1140 module = PyUnicode_FromString(module_str); in PyErr_WarnExplicitFormat()
[all …]
Ddynload_aix.c148 pathname_ob = PyUnicode_FromString(pathname); in aix_loaderror()
149 errbuf_ob = PyUnicode_FromString(errbuf); in aix_loaderror()
Ddynload_win.c268 message = PyUnicode_FromString(
277 PyObject *shortname_obj = PyUnicode_FromString(shortname);
Derrors.c169 PyObject *value = PyUnicode_FromString(string); in PyErr_SetString()
508 message = PyUnicode_FromString("Error"); in PyErr_SetFromErrnoWithFilenameObjects()
512 message = PyUnicode_FromString("Error"); /* Sometimes errno didn't get set */ in PyErr_SetFromErrnoWithFilenameObjects()
521 message = PyUnicode_FromString(_sys_errlist[i]); in PyErr_SetFromErrnoWithFilenameObjects()
927 docobj = PyUnicode_FromString(doc); in PyErr_NewExceptionWithDoc()
1154 res = PyUnicode_FromString(linebuf); in err_programtext()
Dstructmember.c57 v = PyUnicode_FromString(*(char**)addr); in PyMember_GetOne()
60 v = PyUnicode_FromString((char*)addr); in PyMember_GetOne()
Dimport.c817 nameobj = PyUnicode_FromString(name); in PyImport_AddModule()
873 nameobj = PyUnicode_FromString(name); in PyImport_ExecCodeModuleWithPathnames()
1387 pname = PyUnicode_FromString(name); in PyImport_ImportModule()
1837 nameobj = PyUnicode_FromString(name); in PyImport_ImportModuleLevel()
1974 PyObject *item = PyUnicode_FromString(suffix); in _imp_extension_suffixes_impl()
2279 PyObject *pyc_mode = PyUnicode_FromString(_Py_CheckHashBasedPycsMode); in PyInit__imp()
/external/python/cpython3/Objects/
Dmethodobject.c109 return PyUnicode_FromString(m->m_ml->ml_name); in meth_reduce()
135 return PyUnicode_FromString(m->m_ml->ml_name); in meth_get__name__()
153 return PyUnicode_FromString(m->m_ml->ml_name); in meth_get__qualname__()
Dfileobject.c157 PyObject *v = PyUnicode_FromString(s); in PyFile_WriteString()
453 return PyUnicode_FromString("w"); in get_mode()
Dobject.c494 return PyUnicode_FromString("<NULL>"); in PyObject_Repr()
541 return PyUnicode_FromString("<NULL>"); in PyObject_Str()
814 w = PyUnicode_FromString(name); in PyObject_GetAttrString()
1538 return PyUnicode_FromString("None"); in none_repr()
1656 return PyUnicode_FromString("NotImplemented"); in NotImplemented_repr()
1662 return PyUnicode_FromString("NotImplemented"); in NotImplemented_reduce()
Dsliceobject.c35 return PyUnicode_FromString("Ellipsis"); in ellipsis_repr()
41 return PyUnicode_FromString("Ellipsis"); in ellipsis_reduce()
/external/python/cpython3/Doc/includes/
Dcustom2.c25 self->first = PyUnicode_FromString(""); in Custom_new()
30 self->last = PyUnicode_FromString(""); in Custom_new()
Dcustom3.c25 self->first = PyUnicode_FromString(""); in Custom_new()
30 self->last = PyUnicode_FromString(""); in Custom_new()
Dcustom4.c41 self->first = PyUnicode_FromString(""); in Custom_new()
46 self->last = PyUnicode_FromString(""); in Custom_new()
/external/python/cpython3/Modules/
Dossaudiodev.c941 rval = PyUnicode_FromString(self->devicename); in oss_getattro()
948 rval = PyUnicode_FromString("r"); in oss_getattro()
951 rval = PyUnicode_FromString("rw"); in oss_getattro()
954 rval = PyUnicode_FromString("w"); in oss_getattro()
1073 s = PyUnicode_FromString(control_labels[i]); in build_namelists()
1078 s = PyUnicode_FromString(control_names[i]); in build_namelists()
Dunicodedata.c269 return PyUnicode_FromString(_PyUnicode_CategoryNames[index]); in unicodedata_UCD_category_impl()
298 return PyUnicode_FromString(_PyUnicode_BidirectionalNames[index]); in unicodedata_UCD_bidirectional_impl()
382 return PyUnicode_FromString(_PyUnicode_EastAsianWidthNames[index]); in unicodedata_UCD_east_asian_width_impl()
412 return PyUnicode_FromString(""); /* unassigned */ in unicodedata_UCD_decomposition_impl()
1217 return PyUnicode_FromString(name); in unicodedata_UCD_name_impl()
D_ssl.c645 verify_obj = PyUnicode_FromString(verify_str); in fill_and_set_sslerror()
1280 v = PyUnicode_FromString("DirName"); in _get_peer_alt_names()
1305 v = PyUnicode_FromString("email"); in _get_peer_alt_names()
1309 v = PyUnicode_FromString("DNS"); in _get_peer_alt_names()
1313 v = PyUnicode_FromString("URI"); in _get_peer_alt_names()
1336 v = PyUnicode_FromString("Registered ID"); in _get_peer_alt_names()
1349 v = PyUnicode_FromString("<INVALID>"); in _get_peer_alt_names()
1849 v = PyUnicode_FromString(cipher_name); in cipher_to_tuple()
1860 v = PyUnicode_FromString(cipher_protocol); in cipher_to_tuple()
2004 return PyUnicode_FromString(version); in _ssl__SSLSocket_version_impl()
[all …]
/external/python/cpython3/Modules/_sqlite/
Dmodule.c456 if (!(tmp_obj = PyUnicode_FromString(PYSQLITE_VERSION))) { in PyInit__sqlite3()
462 if (!(tmp_obj = PyUnicode_FromString(sqlite3_libversion()))) { in PyInit__sqlite3()
/external/python/cpython3/PC/
Dwinsound.c200 PyObject *k = PyUnicode_FromString(key); in add_define()
/external/tensorflow/tensorflow/python/client/
Dtf_session.i128 $result = PyUnicode_FromString($1);
133 $result = PyUnicode_FromString($1);
199 PyList_SET_ITEM($result, i, PyUnicode_FromString($1[i]));
/external/python/cpython2/Include/
Dunicodeobject.h194 # define PyUnicode_FromString PyUnicodeUCS2_FromString macro
281 # define PyUnicode_FromString PyUnicodeUCS4_FromString macro
477 PyAPI_FUNC(PyObject*) PyUnicode_FromString(

123456