Home | History | Annotate | Download | only in Modules

Lines Matching defs:tuple

62     TUPLE           = 't',
495 PyObject *tuple;
503 tuple = PyTuple_New(len);
504 if (tuple == NULL)
507 PyTuple_SET_ITEM(tuple, j, self->data[i]);
510 return tuple;
2276 /* A helper for save_tuple. Push the len elements in tuple t on the stack. */
2299 * (a tuple can be reached from itself), and that requires some subtle
2308 const char tuple_op = TUPLE;
2325 pdata[1] = TUPLE;
2333 /* The tuple isn't in the memo now. If it shows up there after
2334 * saving the tuple elements, the tuple must be recursive, in
2339 /* Use TUPLE{1,2,3} opcodes. */
2362 * Generate MARK e1 e2 ... TUPLE
3474 /* We're saving obj, and args is the 2-thru-5 tuple returned by the
3496 PyErr_SetString(st->PicklingError, "tuple returned by "
3506 PyErr_SetString(st->PicklingError, "first item of the tuple "
3511 PyErr_SetString(st->PicklingError, "second item of the tuple "
3512 "returned by __reduce__ must be a tuple");
3522 PyErr_Format(st->PicklingError, "fourth element of the tuple "
3531 PyErr_Format(st->PicklingError, "fifth element of the tuple "
3567 "length of the NEWOBJ_EX argument tuple must be "
3575 "first item from NEWOBJ_EX argument tuple must "
3582 "second item from NEWOBJ_EX argument tuple must "
3583 "be a tuple, not %.200s", Py_TYPE(args)->tp_name);
3589 "third item from NEWOBJ_EX argument tuple must "
3957 "__reduce__ must return a string or tuple");
5037 PyObject *tuple;
5042 tuple = Pdata_poptuple(self->stack, Py_SIZE(self->stack) - len);
5043 if (tuple == NULL)
5045 PDATA_PUSH(self->stack, tuple, -1);
5170 /* Caller must assure args are a tuple. Normally, args come from
5172 into a newly created tuple. */
5287 "NEWOBJ expected an arg " "tuple.");
5696 * confirm that pair is really a 2-tuple of strings.
5703 "isn't a 2-tuple of strings", code);
6268 OP(TUPLE, load_tuple)