/third_party/python/Objects/ |
D | codeobject.c | 803 key = PyTuple_Pack(2, Py_TYPE(op), op); in _PyCode_ConstantKey() 811 key = PyTuple_Pack(3, Py_TYPE(op), op, Py_None); in _PyCode_ConstantKey() 813 key = PyTuple_Pack(2, Py_TYPE(op), op); in _PyCode_ConstantKey() 828 key = PyTuple_Pack(3, Py_TYPE(op), op, Py_True); in _PyCode_ConstantKey() 831 key = PyTuple_Pack(3, Py_TYPE(op), op, Py_False); in _PyCode_ConstantKey() 834 key = PyTuple_Pack(3, Py_TYPE(op), op, Py_None); in _PyCode_ConstantKey() 837 key = PyTuple_Pack(2, Py_TYPE(op), op); in _PyCode_ConstantKey() 862 key = PyTuple_Pack(2, tuple, op); in _PyCode_ConstantKey() 896 key = PyTuple_Pack(2, set, op); in _PyCode_ConstantKey() 907 key = PyTuple_Pack(2, obj_id, op); in _PyCode_ConstantKey()
|
D | sliceobject.c | 599 PyObject *t1 = PyTuple_Pack(3, in slice_richcompare() 607 PyObject *t2 = PyTuple_Pack(3, in slice_richcompare()
|
D | namespaceobject.c | 184 result = PyTuple_Pack(3, (PyObject *)Py_TYPE(ns), args, ns->ns_dict); in namespace_reduce()
|
D | genericaliasobject.c | 481 return PyTuple_Pack(1, alias->origin); in ga_mro_entries() 586 args = PyTuple_Pack(1, args); in setup_ga()
|
D | odictobject.c | 983 result = PyTuple_Pack(5, Py_TYPE(od), args, dict ? dict : Py_None, Py_None, items_iter); in odict_reduce() 1178 item = PyTuple_Pack(2, key, value); in OrderedDict_popitem_impl() 1453 pair = PyTuple_Pack(2, key, value); in odict_repr() 1916 di->di_result = PyTuple_Pack(2, Py_None, Py_None); in odictiter_new()
|
D | exceptions.c | 137 return PyTuple_Pack(3, Py_TYPE(self), self->args, self->dict); in BaseException_reduce() 139 return PyTuple_Pack(2, Py_TYPE(self), self->args); in BaseException_reduce() 753 res = PyTuple_Pack(2, Py_TYPE(self), args); in ImportError_reduce() 755 res = PyTuple_Pack(3, Py_TYPE(self), args, state); in ImportError_reduce() 1196 res = PyTuple_Pack(3, Py_TYPE(self), args, self->dict); in OSError_reduce() 1198 res = PyTuple_Pack(2, Py_TYPE(self), args); in OSError_reduce()
|
D | enumobject.c | 75 en->en_result = PyTuple_Pack(2, Py_None, Py_None); in enum_new_impl()
|
D | unionobject.c | 245 PyObject *tuple = PyTuple_Pack(2, self, other); in _Py_union_type_or()
|
D | typeobject.c | 711 tuple = PyTuple_Pack(3, type, new_mro, old_mro); in mro_hierarchy() 713 tuple = PyTuple_Pack(2, type, new_mro); in mro_hierarchy() 3121 new_slots = PyTuple_Pack(1, slots); in type_new_get_slots() 3222 PyObject *new_bases = PyTuple_Pack(1, ctx->base); in type_new_get_bases() 3453 bases = PyTuple_Pack(1, base); in PyType_FromModuleAndSpec() 3466 bases = PyTuple_Pack(1, bases); in PyType_FromModuleAndSpec() 5004 state2 = PyTuple_Pack(2, state, slots); in _PyObject_GetState() 5232 newargs = PyTuple_Pack(3, Py_TYPE(obj), args, kwargs); in reduce_newobj() 5261 result = PyTuple_Pack(5, newobj, newargs, state, listitems, dictitems); in reduce_newobj() 6031 bases = PyTuple_Pack(1, base); in type_ready_set_bases()
|
/third_party/python/Include/ |
D | tupleobject.h | 35 PyAPI_FUNC(PyObject *) PyTuple_Pack(Py_ssize_t, ...);
|
/third_party/python/Parser/ |
D | pegen_errors.c | 34 tuple = PyTuple_Pack(2, errstr, tmp); in _PyPegen_raise_tokenizer_init_error() 362 value = PyTuple_Pack(2, errstr, tmp); in _PyPegen_raise_error_known_location()
|
/third_party/python/Python/ |
D | _warnings.c | 73 PyObject *filter = PyTuple_Pack(5, action_str, Py_None, in create_filter() 472 altkey = PyTuple_Pack(3, text, category, _PyLong_GetZero()); in update_registry() 474 altkey = PyTuple_Pack(2, text, category); in update_registry() 671 key = PyTuple_Pack(3, text, category, lineno_obj); in warn_explicit()
|
D | errors.c | 206 PyObject *tup = PyTuple_Pack(1, arg); in _PyErr_SetKeyError() 1148 bases = PyTuple_Pack(1, base); in PyErr_NewException()
|
D | import.c | 471 PyObject *key = PyTuple_Pack(2, filename, name); in _PyImport_FixupExtensionObject() 506 PyObject *key = PyTuple_Pack(2, filename, name); in import_find_extension()
|
/third_party/python/Objects/stringlib/ |
D | unicode_format.h | 1052 tuple = PyTuple_Pack(4, literal_str, field_name_str, format_spec_str, in formatteriter_next() 1190 result = PyTuple_Pack(2, is_attr_obj, obj); in fieldnameiter_next() 1285 result = PyTuple_Pack(2, first_obj, it); in formatter_field_name_split()
|
/third_party/python/Doc/c-api/ |
D | tuple.rst | 39 .. c:function:: PyObject* PyTuple_Pack(Py_ssize_t n, ...) 43 ``PyTuple_Pack(2, a, b)`` is equivalent to ``Py_BuildValue("(OO)", a, b)``.
|
/third_party/python/Modules/ |
D | main.c | 283 runargs = PyTuple_Pack(2, module, set_argv0 ? Py_True : Py_False); in pymain_run_module()
|
D | _testcapimodule.c | 2432 orig_exc = PyTuple_Pack(3, type ? type : Py_None, value ? value : Py_None, tb ? tb : Py_None); in test_set_exc_info() 2740 if ((tsargs = PyTuple_Pack(1, ts)) == NULL) { in get_date_fromtimestamp() 2770 tsargs = PyTuple_Pack(2, ts, tzinfo); in get_datetime_fromtimestamp() 2773 tsargs = PyTuple_Pack(1, ts); in get_datetime_fromtimestamp() 6409 return PyTuple_Pack(1, self->item); in generic_alias_mro_entries() 7304 PyObject *subclass_bases = PyTuple_Pack(1, HeapCType); in PyInit__testcapi() 7345 PyObject *subclass_with_finalizer_bases = PyTuple_Pack(1, HeapCTypeSubclass); in PyInit__testcapi()
|
D | _collectionsmodule.c | 2002 tup = PyTuple_Pack(1, key); in defdict_missing() 2071 args = PyTuple_Pack(1, dd->default_factory); in defdict_reduce() 2085 result = PyTuple_Pack(5, Py_TYPE(dd), args, in defdict_reduce()
|
D | _elementtree.c | 2538 old = PyTuple_Pack(2, in _elementtree__set_factories_impl() 2659 PyObject *event = PyTuple_Pack(2, action, node); in treebuilder_append_event() 2881 pi = PyTuple_Pack(2, target, text); in treebuilder_handle_pi() 2905 parcel = PyTuple_Pack(2, prefix, uri); in treebuilder_handle_start_ns()
|
D | selectmodule.c | 372 ret = PyTuple_Pack(3, rlist, wlist, xlist); in select_select_impl() 988 value = PyTuple_Pack(2, num1, num2); in select_devpoll_poll_impl()
|
D | _datetimemodule.c | 2316 result = PyTuple_Pack(2, PyTuple_GET_ITEM(divmod, 0), delta); in delta_divmod() 4638 result = PyTuple_Pack(1, basestate); in time_getstate() 4640 result = PyTuple_Pack(2, basestate, self->tzinfo); in time_getstate() 6294 result = PyTuple_Pack(1, basestate); in datetime_getstate() 6296 result = PyTuple_Pack(2, basestate, self->tzinfo); in datetime_getstate()
|
/third_party/python/Modules/_decimal/ |
D | _decimal.c | 3511 result = PyTuple_Pack(2, numerator, denominator); in dec_as_integer_ratio() 5791 base = PyTuple_Pack(2, DecimalException, PyExc_TypeError); in PyInit__decimal() 5794 base = PyTuple_Pack(2, DecimalException, PyExc_ZeroDivisionError); in PyInit__decimal() 5797 base = PyTuple_Pack(2, signal_map[INEXACT].ex, in PyInit__decimal() 5801 base = PyTuple_Pack(3, signal_map[INEXACT].ex, in PyInit__decimal() 5806 base = PyTuple_Pack(1, DecimalException); in PyInit__decimal() 5837 base = PyTuple_Pack(2, signal_map[0].ex, PyExc_ZeroDivisionError); in PyInit__decimal() 5840 base = PyTuple_Pack(1, signal_map[0].ex); in PyInit__decimal()
|
/third_party/python/Modules/_sqlite/ |
D | cursor.c | 584 PyObject *descriptor = PyTuple_Pack(7, column_name, in _pysqlite_query_execute()
|
/third_party/protobuf/python/google/protobuf/pyext/ |
D | map_container.cc | 1010 ScopedPyObjectPtr bases(PyTuple_Pack(1, mutable_mapping.get())); in InitMapContainers()
|