/external/python/cpython2/Modules/ |
D | _localemodule.c | 183 result_object = PyString_FromString(result); in PyLocale_setlocale() 198 result_object = PyString_FromString(result); in PyLocale_setlocale() 224 x = PyString_FromString(l->s);\ in PyLocale_localeconv() 378 result = PyString_FromString(buf); in PyLocale_strxfrm() 547 return PyString_FromString(result != NULL ? result : ""); in PyLocale_nl_langinfo() 566 return PyString_FromString(gettext(in)); in PyIntl_gettext() 579 return PyString_FromString(dgettext(domain, in)); in PyIntl_dgettext() 593 return PyString_FromString(dcgettext(domain,msgid,category)); in PyIntl_dcgettext() 611 return PyString_FromString(domain); in PyIntl_textdomain() 633 return PyString_FromString(dirname); in PyIntl_bindtextdomain() [all …]
|
D | grpmodule.c | 50 PyObject *x = PyString_FromString(*member); in mkgrent() 61 SET(setIndex++, PyString_FromString(p->gr_name)); in mkgrent() 67 SET(setIndex++, PyString_FromString(p->gr_passwd)); in mkgrent()
|
D | _tkinter.c | 549 return PyString_FromString(list); in Split() 553 v = PyString_FromString(""); in Split() 555 v = PyString_FromString(argv[0]); in Split() 904 return PyString_FromString(Tcl_GetString(self->value)); in PyTclObject_str() 955 return PyString_FromString(buf); in PyTclObject_repr() 974 return PyString_FromString(obj->value->typePtr->name); in get_typename() 1693 res = PyString_FromString(Tkapp_Result(self)); in Tkapp_GlobalCall() 1720 res = PyString_FromString(Tkapp_Result(self)); in Tkapp_Eval() 1743 res = PyString_FromString(Tkapp_Result(self)); in Tkapp_GlobalEval() 1768 res = PyString_FromString(Tkapp_Result(self)); in Tkapp_EvalFile() [all …]
|
D | fmmodule.c | 203 v = PyString_FromString(fontname); in clientproc() 243 return PyString_FromString(fmfontpath()); in fm_fontpath()
|
D | ossaudiodev.c | 813 rval = PyString_FromString(self->devicename); in oss_getattr() 820 rval = PyString_FromString("r"); in oss_getattr() 823 rval = PyString_FromString("rw"); in oss_getattr() 826 rval = PyString_FromString("w"); in oss_getattr() 915 s = PyString_FromString(control_labels[i]); in build_namelists() 920 s = PyString_FromString(control_names[i]); in build_namelists()
|
D | bz2module.c | 522 ret = PyString_FromString(""); in BZ2File_read() 611 ret = PyString_FromString(""); in BZ2File_readline() 628 ret = PyString_FromString(""); in BZ2File_readline() 1290 return PyString_FromString("\r"); in BZ2File_get_newlines() 1292 return PyString_FromString("\n"); in BZ2File_get_newlines() 1296 return PyString_FromString("\r\n"); in BZ2File_get_newlines() 1639 return PyString_FromString(""); in BZ2Comp_compress() 2041 self->unused_data = PyString_FromString(""); in BZ2Decomp_init() 2269 return PyString_FromString(""); in bz2_decompress() 2382 PyModule_AddObject(m, "__author__", PyString_FromString(__author__)); in initbz2()
|
/external/python/cpython2/Python/ |
D | sysmodule.c | 232 return PyString_FromString(PyUnicode_GetDefaultEncoding()); in sys_getdefaultencoding() 264 return PyString_FromString(Py_FileSystemDefaultEncoding); in sys_getfilesystemencoding() 612 PyStructSequence_SET_ITEM(version, pos++, PyString_FromString(ver.szCSDVersion)); in sys_getwindowsversion() 1002 PyObject *name = PyString_FromString( in list_builtin_module_names() 1042 str = PyString_FromString(s); in PySys_AddWarnOption() 1339 PyStructSequence_SET_ITEM(version_info, pos++, PyString_FromString(flag)) in make_version_info() 1422 PyString_FromString(Py_GetVersion())); in _PySys_Init() 1437 PyString_FromString(Py_GetCopyright())); in _PySys_Init() 1439 PyString_FromString(Py_GetPlatform())); in _PySys_Init() 1441 PyString_FromString(Py_GetProgramFullPath())); in _PySys_Init() [all …]
|
D | _warnings.c | 207 return PyString_FromString("<unknown>"); in normalize_module() 491 *module = PyString_FromString("<string>"); in setup_context() 537 Py_SETREF(*filename, PyString_FromString("__main__")); in setup_context() 544 *filename = PyString_FromString("__main__"); in setup_context() 719 PyObject *message = PyString_FromString(text); in PyErr_WarnEx() 753 PyObject *message = PyString_FromString(text); in PyErr_WarnExplicit() 754 PyObject *filename = PyString_FromString(filename_str); in PyErr_WarnExplicit() 761 module = PyString_FromString(module_str); in PyErr_WarnExplicit() 911 _default_action = PyString_FromString("default"); in _PyWarnings_Init()
|
D | errors.c | 69 PyObject *value = PyString_FromString(string); in PyErr_SetString() 395 PyObject *name = filename ? PyString_FromString(filename) : NULL; in PyErr_SetFromErrnoWithFilename() 474 PyObject *name = filename ? PyString_FromString(filename) : NULL; in PyErr_SetExcFromWindowsErrWithFilename() 511 PyObject *name = filename ? PyString_FromString(filename) : NULL; in PyErr_SetFromWindowsErrWithFilename() 644 docobj = PyString_FromString(doc); in PyErr_NewExceptionWithDoc() 745 tmp = PyString_FromString(filename); in PyErr_SyntaxLocation() 822 return PyString_FromString(p); in PyErr_ProgramText()
|
D | structmember.c | 19 PyString_FromString(mlist[i].name)); in listmembers() 106 v = PyString_FromString(*(char**)addr); in PyMember_GetOne() 109 v = PyString_FromString((char*)addr); in PyMember_GetOne()
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_python_api.py | 29 pythonapi.PyString_FromString.restype = py_object 30 pythonapi.PyString_FromString.argtypes = (c_char_p,) 34 pyob = pythonapi.PyString_FromString(s)
|
/external/python/cpython2/Doc/includes/ |
D | noddy2.c | 26 self->first = PyString_FromString(""); in Noddy_new() 32 self->last = PyString_FromString(""); in Noddy_new() 91 format = PyString_FromString("%s %s"); in Noddy_name()
|
D | noddy4.c | 61 self->first = PyString_FromString(""); in Noddy_new() 67 self->last = PyString_FromString(""); in Noddy_new() 126 format = PyString_FromString("%s %s"); in Noddy_name()
|
D | noddy3.c | 26 self->first = PyString_FromString(""); in Noddy_new() 32 self->last = PyString_FromString(""); in Noddy_new() 154 format = PyString_FromString("%s %s"); in Noddy_name()
|
/external/selinux/libselinux/src/ |
D | selinuxswig_python.i | 70 PyList_SetItem(list, i, PyString_FromString((*$1)[i])); 103 PyList_SetItem(plist, i, PyString_FromString((*$1)[i])); 120 PyList_SetItem(plist, i, PyString_FromString((*$1)[i]));
|
/external/python/cpython2/Objects/ |
D | sliceobject.c | 22 return PyString_FromString("Ellipsis"); in ellipsis_repr() 276 s = PyString_FromString("slice("); in slice_repr() 277 comma = PyString_FromString(", "); in slice_repr() 283 PyString_ConcatAndDel(&s, PyString_FromString(")")); in slice_repr()
|
D | methodobject.c | 152 return PyString_FromString(doc); in meth_get__doc__() 160 return PyString_FromString(m->m_ml->ml_name); in meth_get__name__() 337 PyList_SetItem(v, i, PyString_FromString(ml->ml_name)); in listmethodchain() 364 return PyString_FromString(doc); in Py_FindMethodInChain()
|
D | exceptions.c | 46 self->message = PyString_FromString(""); in BaseException_new() 104 out = PyString_FromString(""); in BaseException_str() 170 repr = PyString_FromString(name); in BaseException_repr() 663 fmt = PyString_FromString("[Errno %s] %s: %s"); in EnvironmentError_str() 707 fmt = PyString_FromString("[Errno %s] %s"); in EnvironmentError_str() 894 fmt = PyString_FromString("[Error %s] %s: %s"); in WindowsError_str() 938 fmt = PyString_FromString("[Error %s] %s"); in WindowsError_str() 1194 result = PyString_FromString(buffer); in SyntaxError_str() 1313 PyObject *obj = PyString_FromString(value); in set_string() 2190 exc_message = PyString_FromString("maximum recursion depth exceeded"); in _PyExc_Init()
|
D | tupleobject.c | 274 return PyString_FromString("()"); in tuplerepr() 282 return i > 0 ? PyString_FromString("(...)") : NULL; in tuplerepr() 299 s = PyString_FromString("("); in tuplerepr() 308 s = PyString_FromString(n == 1 ? ",)" : ")"); in tuplerepr() 318 s = PyString_FromString(", "); in tuplerepr()
|
D | descrobject.c | 356 return PyString_FromString(descr->d_method->ml_doc); in method_get_doc() 377 return PyString_FromString(descr->d_member->doc); in member_get_doc() 392 return PyString_FromString(descr->d_getset->doc); in getset_get_doc() 407 return PyString_FromString(descr->d_base->doc); in wrapperdescr_get_doc() 1003 return PyString_FromString(s); in wrapper_name() 1016 return PyString_FromString(s); in wrapper_doc()
|
D | codeobject.c | 160 emptystring = PyString_FromString(""); in PyCode_NewEmpty() 169 funcname_ob = PyString_FromString(funcname); in PyCode_NewEmpty() 172 filename_ob = PyString_FromString(filename); in PyCode_NewEmpty() 380 return PyString_FromString(buf); in code_repr()
|
/external/tensorflow/tensorflow/python/grappler/ |
D | cluster.i | 222 PyList_SetItem(result, i, PyString_FromString(op_names[i].c_str())); in TF_ListAvailableOps() 300 PyList_SetItem(dev, i, PyString_FromString(device_names[i].c_str())); in TF_GetSupportedDevices() 302 CHECK_EQ(0, PyDict_SetItem(result, PyString_FromString(node.c_str()), dev)); in TF_GetSupportedDevices() 416 PyTuple_SetItem(live, 0, PyString_FromString(live_tensor.node.c_str())); in TF_DeterminePeakMemoryUsage() 427 PyDict_SetItem(result, PyString_FromString(device.first.c_str()), ret); in TF_DeterminePeakMemoryUsage()
|
D | item.i | 137 PyList_SetItem(result, i, PyString_FromString(ops[i].c_str())); in TF_IdentifyImportantOps() 167 CHECK_EQ(0, PyDict_SetItem(props, PyString_FromString(node_name.c_str()), prop)); in TF_GetOpProperties() 297 PyTuple_SetItem(g, j, PyString_FromString(node_name.c_str())); in TF_GetColocationGroups()
|
/external/python/cpython2/RISCOS/Modules/ |
D | swimodule.c | 299 { PyList_SetItem(list, 0, PyString_FromString("length")); in PyBlock_GetAttr() 300 PyList_SetItem(list, 1, PyString_FromString("start")); in PyBlock_GetAttr() 301 PyList_SetItem(list, 2, PyString_FromString("end")); in PyBlock_GetAttr() 405 case 's':v=PyString_FromString((char*)(r.r[rno++])); break; in swi_swi()
|
/external/python/cpython2/Include/ |
D | bytesobject.h | 12 #define PyBytes_FromString PyString_FromString
|