/third_party/python/Modules/ |
D | _uuidmodule.c | 30 return Py_BuildValue("y#i", (const char *) uuid, sizeof(uuid), res); in py_uuid_generate_time_safe() 37 return Py_BuildValue("y#i", buf, sizeof(uuid), (int) status); in py_uuid_generate_time_safe() 39 return Py_BuildValue("y#i", (const char *) &uuid, sizeof(uuid), (int) status); in py_uuid_generate_time_safe() 43 return Py_BuildValue("y#O", (const char *) uuid, sizeof(uuid), Py_None); in py_uuid_generate_time_safe() 69 return Py_BuildValue("y#", (const char *)&uuid, sizeof(uuid)); in py_UuidCreate()
|
D | itertoolsmodule.c | 331 value = Py_BuildValue("O(OO)(OOO)", Py_TYPE(lz), in groupby_reduce() 334 value = Py_BuildValue("O(OO)", Py_TYPE(lz), in groupby_reduce() 509 return Py_BuildValue("N(())", _PyEval_GetBuiltinId(&PyId_iter)); in _grouper_reduce() 511 return Py_BuildValue("O(OO)", Py_TYPE(lz), lz->parent, lz->tgtkey); in _grouper_reduce() 709 return Py_BuildValue("O(ONO)", Py_TYPE(tdo), tdo->it, in teedataobject_reduce() 930 return Py_BuildValue("O(())(Oi)", Py_TYPE(to), to->dataobj, to->index); in tee_reduce() 1192 return Py_BuildValue("O(N)(OO)", Py_TYPE(lz), it, lz->saved, Py_True); in cycle_reduce() 1194 return Py_BuildValue("O(O)(OO)", Py_TYPE(lz), lz->it, lz->saved, in cycle_reduce() 1369 return Py_BuildValue("O(OO)l", Py_TYPE(lz), lz->func, lz->it, lz->start); in dropwhile_reduce() 1528 return Py_BuildValue("O(OO)l", Py_TYPE(lz), lz->func, lz->it, lz->stop); in takewhile_reduce() [all …]
|
D | _testcapimodule.c | 1024 res = Py_BuildValue(fmt, return_none, NULL, arg); in test_buildvalue_N_error() 1037 res = Py_BuildValue(fmt, raise_error, NULL, arg); in test_buildvalue_N_error() 1064 res = Py_BuildValue("N", arg); in test_buildvalue_N() 1177 return Py_BuildValue("iii", a, b, c); in getargs_tuple() 1192 return Py_BuildValue("iiiiiiiiii", in getargs_keywords() 1209 return Py_BuildValue("iii", required, optional, keyword_only); in getargs_keyword_only() 1224 return Py_BuildValue("iii", required, optional, keyword); in getargs_positional_only_and_keywords() 2019 return Py_BuildValue("(Nn)", result, size); in unicode_aswidechar() 2040 return Py_BuildValue("(Nn)", result, size); in unicode_aswidecharstring() 2112 return Py_BuildValue("(Nn)", result, utf8_len); in unicode_asutf8andsize() [all …]
|
D | _winapi.c | 275 return Py_BuildValue("II", (unsigned) transferred, (unsigned) err); in _winapi_Overlapped_GetOverlappedResult_impl() 743 return Py_BuildValue( in _winapi_CreatePipe_impl() 1156 ret = Py_BuildValue("NNkk", in _winapi_CreateProcess_impl() 1502 return Py_BuildValue("NII", buf, navail, nleft); in _winapi_PeekNamedPipe_impl() 1511 return Py_BuildValue("II", navail, nleft); in _winapi_PeekNamedPipe_impl() 1563 return Py_BuildValue("NI", (PyObject *) overlapped, err); in _winapi_ReadFile_impl() 1572 return Py_BuildValue("NI", buf, err); in _winapi_ReadFile_impl() 1851 return Py_BuildValue("NI", (PyObject *) overlapped, err); in _winapi_WriteFile_impl() 1857 return Py_BuildValue("II", written, err); in _winapi_WriteFile_impl() 2042 PyObject *value = Py_BuildValue(fmt, con); \
|
D | overlapped.c | 224 return Py_BuildValue(F_HANDLE, ret); in _overlapped_CreateIoCompletionPort_impl() 263 return Py_BuildValue(F_DWORD F_DWORD F_ULONG_PTR F_POINTER, in _overlapped_GetQueuedCompletionStatus_impl() 358 return Py_BuildValue(F_HANDLE, NewWaitObject); in _overlapped_RegisterWaitWithQueue_impl() 448 return Py_BuildValue(F_HANDLE, Event); in _overlapped_CreateEvent_impl() 581 res = Py_BuildValue("u", lpMsgBuf); in _overlapped_FormatMessage_impl() 767 ret = Py_BuildValue("Oi", addrobj, ntohs(a->sin_port)); in unparse_address() 777 ret = Py_BuildValue("OiII", in unparse_address() 1592 return Py_BuildValue(F_HANDLE, PipeHandle); in _overlapped_Overlapped_ConnectPipe_impl() 1924 PyObject *value = Py_BuildValue(fmt, con); \
|
D | socketmodule.c | 614 v = Py_BuildValue("(is)", h_error, hstrerror(h_error)); in set_herror() 616 v = Py_BuildValue("(is)", h_error, "host not found"); in set_herror() 639 v = Py_BuildValue("(is)", error, gai_strerror(error)); in set_gaierror() 641 v = Py_BuildValue("(is)", error, "getaddrinfo failed"); in set_gaierror() 1305 ret = Py_BuildValue("Oi", addrobj, ntohs(a->sin_port)); in makesockaddr() 1333 return Py_BuildValue("II", a->nl_pid, a->nl_groups); in makesockaddr() 1341 return Py_BuildValue("II", a->sq_node, a->sq_port); in makesockaddr() 1349 return Py_BuildValue("II", a->svm_cid, a->svm_port); in makesockaddr() 1360 ret = Py_BuildValue("OiII", in makesockaddr() 1382 ret = Py_BuildValue("Oi", in makesockaddr() [all …]
|
D | _cryptmodule.c | 51 return Py_BuildValue("s", crypt_result); in crypt_crypt_impl()
|
D | pyexpat.c | 410 args = Py_BuildValue("(NN)", args, container); in my_StartElementHandler() 442 args = Py_BuildValue PARAM_FORMAT ;\ 535 result = Py_BuildValue("(iiO&N)", in conv_content_model() 570 args = Py_BuildValue("NN", nameobj, modelobj); in my_ElementDeclHandler() 892 return Py_BuildValue("z", XML_GetBase(self->itself)); in pyexpat_xmlparser_GetBase_impl() 1575 return Py_BuildValue("z", XML_ErrorString((int)code)); in pyexpat_ErrorString_impl() 1824 PyObject *item = Py_BuildValue("si", features[i].name, in add_features() 1894 PyObject *versionInfo = Py_BuildValue("(iii)", in pyexpat_exec()
|
D | resource.c | 185 return Py_BuildValue("LL", in rlimit2py() 189 return Py_BuildValue("ll", (long) rl.rlim_cur, (long) rl.rlim_max); in rlimit2py()
|
D | _codecsmodule.c | 169 return Py_BuildValue("Nn", decoded, len); in codec_tuple() 389 return Py_BuildValue("Nni", decoded, consumed, byteorder); in _codecs_utf_16_ex_decode_impl() 485 return Py_BuildValue("Nni", decoded, consumed, byteorder); in _codecs_utf_32_ex_decode_impl()
|
D | _localemodule.c | 468 return Py_BuildValue("ss", locale, encoding); in _locale__getdefaultlocale_impl() 479 return Py_BuildValue("ss", locale, encoding); in _locale__getdefaultlocale_impl() 484 return Py_BuildValue("Os", Py_None, encoding); in _locale__getdefaultlocale_impl()
|
D | audioop.c | 503 return Py_BuildValue("(ii)", min, max); in audioop_minmax_impl() 673 return Py_BuildValue("(nf)", best_j, factor); in audioop_findfit_impl() 1452 Py_BuildValue("(ii)", in audioop_ratecv_impl() 1466 rv = Py_BuildValue("(O(iO))", str, d, samps); in audioop_ratecv_impl() 1773 rv = Py_BuildValue("(O(ii))", str, valpred, index); in audioop_lin2adpcm_impl() 1888 rv = Py_BuildValue("(O(ii))", str, valpred, index); in audioop_adpcm2lin_impl()
|
D | _datetimemodule.c | 1682 args = Py_BuildValue("iiiiiiiii", in build_struct_time() 2616 return Py_BuildValue("iii", GET_TD_DAYS(self), in delta_getstate() 2640 return Py_BuildValue("ON", Py_TYPE(self), delta_getstate(self)); in delta_reduce() 3254 PyObject * reduce_tuple = Py_BuildValue( in iso_calendar_date_reduce() 3414 tuple = Py_BuildValue("iii", year, month, day); in date_replace() 3466 return Py_BuildValue("(N)", field); in date_getstate() 3472 return Py_BuildValue("(ON)", Py_TYPE(self), date_getstate(self)); in date_reduce() 3776 return Py_BuildValue("(ON)", Py_TYPE(self), args); in tzinfo_reduce() 3779 return Py_BuildValue("(ONN)", Py_TYPE(self), args, state); in tzinfo_reduce() 4015 return Py_BuildValue("(O)", self->offset); in timezone_getinitargs() [all …]
|
D | signalmodule.c | 674 return Py_BuildValue("s", res); in signal_strsignal_impl() 1087 PyObject *tup = Py_BuildValue("(iiiiiii)", SIGABRT, SIGBREAK, SIGFPE, 1090 PyObject *tup = Py_BuildValue("(iiiiii)", SIGABRT, SIGFPE, SIGILL, 1832 PyObject *arglist = Py_BuildValue("(iO)", i, frame);
|
D | ossaudiodev.c | 609 return Py_BuildValue("(iii)", fmt, channels, rate); in oss_setparameters() 729 return Py_BuildValue("iii", info.bytes, info.blocks, info.ptr); in oss_getptr() 808 return Py_BuildValue("(ii)", volume & 0xff, (volume & 0xff00) >> 8); in oss_mixer_get() 838 return Py_BuildValue("(ii)", volume & 0xff, (volume & 0xff00) >> 8); in oss_mixer_set()
|
/third_party/python/Python/ |
D | codecs.c | 695 return Py_BuildValue("(Nn)", PyUnicode_New(0, 0), end); in PyCodec_IgnoreErrors() 719 return Py_BuildValue("(Nn)", res, end); in PyCodec_ReplaceErrors() 724 return Py_BuildValue("(Cn)", in PyCodec_ReplaceErrors() 744 return Py_BuildValue("(Nn)", res, end); in PyCodec_ReplaceErrors() 840 restuple = Py_BuildValue("(Nn)", res, end); in PyCodec_XMLCharRefReplaceErrors() 886 return Py_BuildValue("(Nn)", res, end); in PyCodec_BackslashReplaceErrors() 954 return Py_BuildValue("(Nn)", res, end); in PyCodec_BackslashReplaceErrors() 1043 restuple = Py_BuildValue("(Nn)", res, end); in PyCodec_NameReplaceErrors() 1207 restuple = Py_BuildValue("(On)", res, end); in PyCodec_SurrogatePassErrors() 1277 return Py_BuildValue("(Nn)", res, start + bytelength); in PyCodec_SurrogatePassErrors() [all …]
|
/third_party/selinux/libselinux/src/ |
D | audit2why.c | 307 return Py_BuildValue("i", result); in init() 312 return Py_BuildValue("iO", (X), Py_None); \ 411 PyObject *bool_ = Py_BuildValue("(si)", b->name, b->active); in analyze() 417 return Py_BuildValue("iN", BOOLEAN, outboollist); in analyze() 424 result = Py_BuildValue("is", CONSTRAINT, reason_buf); in analyze()
|
/third_party/python/Modules/_sqlite/ |
D | microprotocols.c | 63 key = Py_BuildValue("(OO)", (PyObject*)type, proto); in pysqlite_microprotocols_add() 88 key = Py_BuildValue("(OO)", (PyObject*)Py_TYPE(obj), proto); in pysqlite_microprotocols_adapt()
|
/third_party/python/Objects/ |
D | iterobject.c | 108 return Py_BuildValue("N(O)n", _PyEval_GetBuiltinId(&PyId_iter), in iter_reduce() 111 return Py_BuildValue("N(())", _PyEval_GetBuiltinId(&PyId_iter)); in iter_reduce() 247 return Py_BuildValue("N(OO)", _PyEval_GetBuiltinId(&PyId_iter), in calliter_reduce() 250 return Py_BuildValue("N(())", _PyEval_GetBuiltinId(&PyId_iter)); in calliter_reduce()
|
D | enumobject.c | 207 return Py_BuildValue("O(OO)", Py_TYPE(en), en->en_sit, en->en_longindex); in enum_reduce() 209 return Py_BuildValue("O(On)", Py_TYPE(en), en->en_sit, en->en_index); in enum_reduce() 403 return Py_BuildValue("O(O)n", Py_TYPE(ro), ro->seq, ro->index); in reversed_reduce() 405 return Py_BuildValue("O(())", Py_TYPE(ro)); in reversed_reduce()
|
D | sliceobject.c | 547 return Py_BuildValue("(NNN)", start, stop, step); in slice_indices() 561 return Py_BuildValue("O(OOO)", Py_TYPE(self), self->start, self->stop, self->step); in slice_reduce()
|
/third_party/python/Doc/extending/ |
D | extending.rst | 547 :c:func:`Py_BuildValue` returns a tuple when its format string consists of zero 557 arglist = Py_BuildValue("(i)", arg); 593 is to call :c:func:`Py_BuildValue`. For example, if you want to pass an integral 598 arglist = Py_BuildValue("(l)", eventcode); 608 :c:func:`Py_BuildValue` may run out of memory, and this should be checked. 612 the above example, we use :c:func:`Py_BuildValue` to construct the dictionary. :: 616 dict = Py_BuildValue("{s:i}", "name", val); 805 PyObject *Py_BuildValue(const char *format, ...); 814 as tuples internally), :c:func:`Py_BuildValue` does not always build a tuple. It 824 Py_BuildValue("") None [all …]
|
/third_party/python/Include/ |
D | modsupport.h | 20 #define Py_BuildValue _Py_BuildValue_SizeT macro 49 PyAPI_FUNC(PyObject *) Py_BuildValue(const char *, ...);
|
/third_party/python/Parser/ |
D | pegen_errors.c | 29 PyObject *tmp = Py_BuildValue("(OiiO)", filename, 0, -1, Py_None); in _PyPegen_raise_tokenizer_init_error() 358 …tmp = Py_BuildValue("(OiiNii)", p->tok->filename, lineno, col_number, error_line, end_lineno, end_… in _PyPegen_raise_error_known_location()
|
/third_party/python/Modules/_io/ |
D | textio.c | 559 return Py_BuildValue("NK", buffer, flag); in _io_IncrementalNewlineDecoder_getstate_impl() 623 return Py_BuildValue("ss", "\r", "\n"); in incrementalnewlinedecoder_newlines_get() 625 return Py_BuildValue("ss", "\r", "\r\n"); in incrementalnewlinedecoder_newlines_get() 627 return Py_BuildValue("ss", "\n", "\r\n"); in incrementalnewlinedecoder_newlines_get() 629 return Py_BuildValue("sss", "\r", "\n", "\r\n"); in incrementalnewlinedecoder_newlines_get() 1906 PyObject *snapshot = Py_BuildValue("NN", dec_flags, next_input); in textiowrapper_read_chunk() 2602 snapshot = Py_BuildValue("iN", cookie.dec_flags, input_chunk); in _io_TextIOWrapper_seek_impl() 2624 snapshot = Py_BuildValue("iy", cookie.dec_flags, ""); in _io_TextIOWrapper_seek_impl()
|