/external/python/cpython2/Objects/stringlib/ |
D | partition.h | 32 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, str_len)); in stringlib_partition() 33 PyTuple_SET_ITEM(out, 1, STRINGLIB_NEW(NULL, 0)); in stringlib_partition() 34 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(NULL, 0)); in stringlib_partition() 37 PyTuple_SET_ITEM(out, 0, (PyObject*) str_obj); in stringlib_partition() 39 PyTuple_SET_ITEM(out, 1, (PyObject*) STRINGLIB_EMPTY); in stringlib_partition() 41 PyTuple_SET_ITEM(out, 2, (PyObject*) STRINGLIB_EMPTY); in stringlib_partition() 46 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos)); in stringlib_partition() 48 PyTuple_SET_ITEM(out, 1, sep_obj); in stringlib_partition() 50 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos)); in stringlib_partition() 82 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(NULL, 0)); in stringlib_rpartition() [all …]
|
/external/python/cpython3/Objects/stringlib/ |
D | partition.h | 29 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, str_len)); in STRINGLIB() 30 PyTuple_SET_ITEM(out, 1, STRINGLIB_NEW(NULL, 0)); in STRINGLIB() 31 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(NULL, 0)); in STRINGLIB() 39 PyTuple_SET_ITEM(out, 0, (PyObject*) str_obj); in STRINGLIB() 41 PyTuple_SET_ITEM(out, 1, (PyObject*) STRINGLIB_EMPTY); in STRINGLIB() 43 PyTuple_SET_ITEM(out, 2, (PyObject*) STRINGLIB_EMPTY); in STRINGLIB() 48 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(str, pos)); in STRINGLIB() 50 PyTuple_SET_ITEM(out, 1, sep_obj); in STRINGLIB() 52 PyTuple_SET_ITEM(out, 2, STRINGLIB_NEW(str + pos, str_len - pos)); in STRINGLIB() 84 PyTuple_SET_ITEM(out, 0, STRINGLIB_NEW(NULL, 0)); in STRINGLIB() [all …]
|
/external/python/cpython3/Objects/ |
D | enumobject.c | 129 PyTuple_SET_ITEM(result, 0, next_index); in enum_next_long() 130 PyTuple_SET_ITEM(result, 1, next_item); in enum_next_long() 141 PyTuple_SET_ITEM(result, 0, next_index); in enum_next_long() 142 PyTuple_SET_ITEM(result, 1, next_item); in enum_next_long() 174 PyTuple_SET_ITEM(result, 0, next_index); in enum_next() 175 PyTuple_SET_ITEM(result, 1, next_item); in enum_next() 186 PyTuple_SET_ITEM(result, 0, next_index); in enum_next() 187 PyTuple_SET_ITEM(result, 1, next_item); in enum_next()
|
D | rangeobject.c | 513 PyTuple_SET_ITEM(t, 0, r->length); in range_hash() 520 PyTuple_SET_ITEM(t, 1, Py_None); in range_hash() 521 PyTuple_SET_ITEM(t, 2, Py_None); in range_hash() 525 PyTuple_SET_ITEM(t, 1, r->start); in range_hash() 531 PyTuple_SET_ITEM(t, 2, Py_None); in range_hash() 535 PyTuple_SET_ITEM(t, 2, r->step); in range_hash()
|
D | codeobject.c | 74 PyTuple_SET_ITEM(tuple, i, v); in intern_string_constants() 104 PyTuple_SET_ITEM(tuple, i, v); in intern_string_constants() 431 PyTuple_SET_ITEM(newtuple, i, item); in validate_and_copy_tuple() 774 PyTuple_SET_ITEM(tuple, i, item_key); in _PyCode_ConstantKey() 803 PyTuple_SET_ITEM(tuple, i, item_key); in _PyCode_ConstantKey()
|
/external/python/cpython2/Objects/ |
D | exceptions.c | 681 PyTuple_SET_ITEM(tuple, 0, self->myerrno); in EnvironmentError_str() 685 PyTuple_SET_ITEM(tuple, 0, Py_None); in EnvironmentError_str() 689 PyTuple_SET_ITEM(tuple, 1, self->strerror); in EnvironmentError_str() 693 PyTuple_SET_ITEM(tuple, 1, Py_None); in EnvironmentError_str() 696 PyTuple_SET_ITEM(tuple, 2, repr); in EnvironmentError_str() 719 PyTuple_SET_ITEM(tuple, 0, self->myerrno); in EnvironmentError_str() 723 PyTuple_SET_ITEM(tuple, 0, Py_None); in EnvironmentError_str() 727 PyTuple_SET_ITEM(tuple, 1, self->strerror); in EnvironmentError_str() 731 PyTuple_SET_ITEM(tuple, 1, Py_None); in EnvironmentError_str() 771 PyTuple_SET_ITEM(args, 0, tmp); in EnvironmentError_reduce() [all …]
|
D | enumobject.c | 123 PyTuple_SET_ITEM(result, 0, next_index); in enum_next_long() 124 PyTuple_SET_ITEM(result, 1, next_item); in enum_next_long() 162 PyTuple_SET_ITEM(result, 0, next_index); in enum_next() 163 PyTuple_SET_ITEM(result, 1, next_item); in enum_next()
|
D | codeobject.c | 59 PyTuple_SET_ITEM(tuple, i, v); in intern_string_constants() 80 PyTuple_SET_ITEM(tuple, i, v); in intern_string_constants() 256 PyTuple_SET_ITEM(newtuple, i, item); in validate_and_copy_tuple() 492 PyTuple_SET_ITEM(tuple, i, item_key); in _PyCode_ConstantKey() 521 PyTuple_SET_ITEM(tuple, i, item_key); in _PyCode_ConstantKey()
|
D | structseq.c | 89 PyTuple_SET_ITEM(np, i-low, v); in structseq_slice() 131 PyTuple_SET_ITEM(result, i, v); in structseq_subscript() 396 PyTuple_SET_ITEM(tup, i, self->ob_item[i]); in structseq_reduce()
|
/external/tensorflow/tensorflow/python/framework/ |
D | python_tensor_converter_wrapper.cc | 105 PyTuple_SET_ITEM(result, 0, converted.release()); in Convert() 106 PyTuple_SET_ITEM(result, 1, PY_INT_FROM_LONG(dtype_enum)); in Convert() 107 PyTuple_SET_ITEM(result, 2, used_fallback ? Py_True : Py_False); in Convert()
|
/external/python/cpython2/Modules/ |
D | itertoolsmodule.c | 657 PyTuple_SET_ITEM(result, 0, copyable); in tee() 664 PyTuple_SET_ITEM(result, i, copyable); in tee() 1481 PyTuple_SET_ITEM(iters, i-1, it); in imap_new() 1559 PyTuple_SET_ITEM(argtuple, i, val); in imap_next() 1859 PyTuple_SET_ITEM(pools, i, pool); in product_new() 1865 PyTuple_SET_ITEM(pools, i, pool); in product_new() 1934 PyTuple_SET_ITEM(result, i, elem); in product_next() 1949 PyTuple_SET_ITEM(result, i, elem); in product_next() 1967 PyTuple_SET_ITEM(result, i, elem); in product_next() 1974 PyTuple_SET_ITEM(result, i, elem); in product_next() [all …]
|
D | xxsubtype.c | 57 PyTuple_SET_ITEM(result, 0, self); in spamlist_specialmeth() 59 PyTuple_SET_ITEM(result, 1, args); in spamlist_specialmeth() 61 PyTuple_SET_ITEM(result, 2, kw); in spamlist_specialmeth()
|
D | _ssl.c | 995 PyTuple_SET_ITEM(t, 0, v); in _get_peer_alt_names() 1002 PyTuple_SET_ITEM(t, 1, v); in _get_peer_alt_names() 1031 PyTuple_SET_ITEM(t, 0, v); in _get_peer_alt_names() 1038 PyTuple_SET_ITEM(t, 1, v); in _get_peer_alt_names() 1051 PyTuple_SET_ITEM(t, 0, v); in _get_peer_alt_names() 1067 PyTuple_SET_ITEM(t, 1, v); in _get_peer_alt_names() 1109 PyTuple_SET_ITEM(t, 0, v); in _get_peer_alt_names() 1115 PyTuple_SET_ITEM(t, 1, v); in _get_peer_alt_names() 1550 PyTuple_SET_ITEM(retval, 0, Py_None); in PySSL_cipher() 1555 PyTuple_SET_ITEM(retval, 0, v); in PySSL_cipher() [all …]
|
D | _hotshot.c | 487 PyTuple_SET_ITEM(result, 0, PyInt_FromLong(what)); in logreader_tp_iternext() 488 PyTuple_SET_ITEM(result, 2, PyInt_FromLong(fileno)); in logreader_tp_iternext() 490 PyTuple_SET_ITEM(result, 1, PyInt_FromLong(tdelta)); in logreader_tp_iternext() 492 PyTuple_SET_ITEM(result, 1, s1); in logreader_tp_iternext() 494 PyTuple_SET_ITEM(result, 3, PyInt_FromLong(lineno)); in logreader_tp_iternext() 496 PyTuple_SET_ITEM(result, 3, s2); in logreader_tp_iternext()
|
/external/python/cpython3/Modules/ |
D | xxsubtype.c | 57 PyTuple_SET_ITEM(result, 0, self); in spamlist_specialmeth() 59 PyTuple_SET_ITEM(result, 1, args); in spamlist_specialmeth() 61 PyTuple_SET_ITEM(result, 2, kw); in spamlist_specialmeth()
|
D | _operator.c | 1049 PyTuple_SET_ITEM(result, i, val); in itemgetter_call() 1203 PyTuple_SET_ITEM(attr, idx, item); in attrgetter_new() 1229 PyTuple_SET_ITEM(attr_chain, attr_chain_idx, attr_chain_item); in attrgetter_new() 1243 PyTuple_SET_ITEM(attr_chain, attr_chain_idx, attr_chain_item); in attrgetter_new() 1245 PyTuple_SET_ITEM(attr, idx, attr_chain); in attrgetter_new() 1340 PyTuple_SET_ITEM(result, i, val); in attrgetter_call() 1378 PyTuple_SET_ITEM(attrstrings, i, attrstr); in attrgetter_args() 1607 PyTuple_SET_ITEM(argreprs, i, onerepr); in methodcaller_repr() 1622 PyTuple_SET_ITEM(argreprs, i, onerepr); in methodcaller_repr() 1662 PyTuple_SET_ITEM(newargs, 0, mc->name); in methodcaller_reduce() [all …]
|
D | itertoolsmodule.c | 923 PyTuple_SET_ITEM(result, 0, copyable); in itertools_tee_impl() 931 PyTuple_SET_ITEM(result, i, copyable); in itertools_tee_impl() 2147 PyTuple_SET_ITEM(pools, i, pool); in product_new() 2153 PyTuple_SET_ITEM(pools, i, pool); in product_new() 2234 PyTuple_SET_ITEM(result, i, elem); in product_next() 2262 PyTuple_SET_ITEM(result, i, elem); in product_next() 2269 PyTuple_SET_ITEM(result, i, elem); in product_next() 2313 PyTuple_SET_ITEM(indices, i, index); in product_reduce() 2359 PyTuple_SET_ITEM(result, i, element); in product_setstate() 2559 PyTuple_SET_ITEM(result, i, elem); in combinations_next() [all …]
|
D | _tracemalloc.c | 1088 PyTuple_SET_ITEM(frame_obj, 0, frame->filename); in frame_to_pyobject() 1095 PyTuple_SET_ITEM(frame_obj, 1, lineno_obj); in frame_to_pyobject() 1124 PyTuple_SET_ITEM(frames, i, frame); in traceback_to_pyobject() 1156 PyTuple_SET_ITEM(trace_obj, 0, obj); in trace_to_pyobject() 1163 PyTuple_SET_ITEM(trace_obj, 1, obj); in trace_to_pyobject() 1170 PyTuple_SET_ITEM(trace_obj, 2, obj); in trace_to_pyobject() 1177 PyTuple_SET_ITEM(trace_obj, 3, obj); in trace_to_pyobject()
|
D | _functoolsmodule.c | 828 PyTuple_SET_ITEM(key, key_pos++, item); in lru_cache_make_key() 832 PyTuple_SET_ITEM(key, key_pos++, kwd_mark); in lru_cache_make_key() 835 PyTuple_SET_ITEM(key, key_pos++, keyword); in lru_cache_make_key() 837 PyTuple_SET_ITEM(key, key_pos++, value); in lru_cache_make_key() 845 PyTuple_SET_ITEM(key, key_pos++, item); in lru_cache_make_key() 851 PyTuple_SET_ITEM(key, key_pos++, item); in lru_cache_make_key()
|
D | _testbuffer.c | 340 PyTuple_SET_ITEM(args, 0, obj); in pack_from_list() 342 PyTuple_SET_ITEM(args, j, NULL); in pack_from_list() 350 PyTuple_SET_ITEM(args, 1, offset); in pack_from_list() 355 PyTuple_SET_ITEM(args, 2, item); in pack_from_list() 361 PyTuple_SET_ITEM(args, 2+j, tmp); in pack_from_list() 432 PyTuple_SET_ITEM(args, 0, mview); in pack_single() 433 PyTuple_SET_ITEM(args, 1, zero); in pack_single() 437 PyTuple_SET_ITEM(args, 2, item); in pack_single() 443 PyTuple_SET_ITEM(args, 2+i, x); in pack_single() 1949 PyTuple_SET_ITEM(ret, i, tmp); in slice_indices() [all …]
|
/external/python/cffi/c/ |
D | cffi1_module.c | 105 PyTuple_SET_ITEM(*included_ffis, num, included_ffi); in make_included_tuples() 109 PyTuple_SET_ITEM(*included_libs, num, included_lib); in make_included_tuples()
|
/external/python/cpython3/Include/cpython/ |
D | tupleobject.h | 30 #define PyTuple_SET_ITEM(op, i, v) (_PyTuple_CAST(op)->ob_item[i] = v) macro
|
/external/python/cpython3/Include/ |
D | structseq.h | 38 #define PyStructSequence_SET_ITEM(op, i, v) PyTuple_SET_ITEM(op, i, v)
|
/external/python/cpython2/Include/ |
D | tupleobject.h | 54 #define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] = v) macro
|
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/ |
D | interpreter_wrapper.cc | 103 PyTuple_SET_ITEM(result, 0, PyFloat_FromDouble(param.scale)); in PyTupleFromQuantizationParam() 104 PyTuple_SET_ITEM(result, 1, PyLong_FromLong(param.zero_point)); in PyTupleFromQuantizationParam() 411 PyTuple_SET_ITEM(result, 0, scales_array); in TensorQuantizationParameters() 412 PyTuple_SET_ITEM(result, 1, zero_points_array); in TensorQuantizationParameters() 413 PyTuple_SET_ITEM(result, 2, PyLong_FromLong(quantized_dimension)); in TensorQuantizationParameters()
|