Home | History | Annotate | Download | only in Modules

Lines Matching defs:tuple

892     PyObject *tuple, *num;
895 tuple = PyTuple_New(1);
896 if (tuple == NULL)
903 PyTuple_SET_ITEM(tuple, 0, num);
906 if (PyArg_ParseTuple(tuple, "L:test_L_code", &value) < 0)
917 PyTuple_SET_ITEM(tuple, 0, num);
920 if (PyArg_ParseTuple(tuple, "L:test_L_code", &value) < 0)
926 Py_DECREF(tuple);
1047 /* Test tuple argument processing */
1182 PyObject *tuple, *num;
1185 tuple = PyTuple_New(1);
1186 if (tuple == NULL)
1199 PyTuple_SET_ITEM(tuple, 0, num);
1202 if (PyArg_ParseTuple(tuple, "k:test_k_code", &value) < 0)
1218 PyTuple_SET_ITEM(tuple, 0, num);
1221 if (PyArg_ParseTuple(tuple, "k:test_k_code", &value) < 0)
1227 Py_DECREF(tuple);
1562 PyObject *tuple, *obj;
1570 tuple = PyTuple_New(1);
1571 if (tuple == NULL)
1579 PyTuple_SET_ITEM(tuple, 0, obj);
1582 if (PyArg_ParseTuple(tuple, "u:test_u_code", &value) < 0)
1588 if (PyArg_ParseTuple(tuple, "u#:test_u_code", &value, &len) < 0)
1595 Py_DECREF(tuple);
1681 PyObject *tuple, *dict = NULL;
1684 tuple = PyTuple_New(0);
1685 if (!tuple)
1687 if ((result = PyArg_ParseTuple(tuple, "|:test_empty_argparse")) < 0)
1692 result = PyArg_ParseTupleAndKeywords(tuple, dict, "|:test_empty_argparse", kwlist);
1694 Py_DECREF(tuple);
1778 PyObject *tuple = PyTuple_Pack(2, o1, o2);
1781 return tuple;