Lines Matching defs:tuple
665 PyObject *tuple;
676 tuple = PyTuple_New(3);
677 if (!tuple) {
685 PyTuple_SET_ITEM(tuple, 0, self->myerrno);
689 PyTuple_SET_ITEM(tuple, 0, Py_None);
693 PyTuple_SET_ITEM(tuple, 1, self->strerror);
697 PyTuple_SET_ITEM(tuple, 1, Py_None);
700 PyTuple_SET_ITEM(tuple, 2, repr);
702 rtnval = PyString_Format(fmt, tuple);
705 Py_DECREF(tuple);
709 PyObject *tuple;
715 tuple = PyTuple_New(2);
716 if (!tuple) {
723 PyTuple_SET_ITEM(tuple, 0, self->myerrno);
727 PyTuple_SET_ITEM(tuple, 0, Py_None);
731 PyTuple_SET_ITEM(tuple, 1, self->strerror);
735 PyTuple_SET_ITEM(tuple, 1, Py_None);
738 rtnval = PyString_Format(fmt, tuple);
741 Py_DECREF(tuple);
896 PyObject *tuple;
907 tuple = PyTuple_New(3);
908 if (!tuple) {
916 PyTuple_SET_ITEM(tuple, 0, self->winerror);
920 PyTuple_SET_ITEM(tuple, 0, Py_None);
924 PyTuple_SET_ITEM(tuple, 1, self->strerror);
928 PyTuple_SET_ITEM(tuple, 1, Py_None);
931 PyTuple_SET_ITEM(tuple, 2, repr);
933 rtnval = PyString_Format(fmt, tuple);
936 Py_DECREF(tuple);
940 PyObject *tuple;
946 tuple = PyTuple_New(2);
947 if (!tuple) {
954 PyTuple_SET_ITEM(tuple, 0, self->winerror);
958 PyTuple_SET_ITEM(tuple, 0, Py_None);
962 PyTuple_SET_ITEM(tuple, 1, self->strerror);
966 PyTuple_SET_ITEM(tuple, 1, Py_None);
969 rtnval = PyString_Format(fmt, tuple);
972 Py_DECREF(tuple);
1072 PyErr_SetString(PyExc_IndexError, "tuple index out of range");
1264 /* If args is a tuple of exactly one item, apply repr to args[0].
2203 Py_FatalError("cannot allocate tuple for RuntimeError "