Lines Matching refs:tup

240     PyObject *tup;  in structseq_repr()  local
250 if ((tup = make_tuple(obj)) == NULL) { in structseq_repr()
267 val = PyTuple_GetItem(tup, i); in structseq_repr()
273 Py_DECREF(tup); in structseq_repr()
278 Py_DECREF(tup); in structseq_repr()
304 Py_DECREF(tup); in structseq_repr()
318 PyObject *tup, *result; in structseq_concat() local
319 tup = make_tuple(obj); in structseq_concat()
320 result = PySequence_Concat(tup, b); in structseq_concat()
321 Py_DECREF(tup); in structseq_concat()
328 PyObject *tup, *result; in structseq_repeat() local
329 tup = make_tuple(obj); in structseq_repeat()
330 result = PySequence_Repeat(tup, n); in structseq_repeat()
331 Py_DECREF(tup); in structseq_repeat()
338 PyObject *tup; in structseq_contains() local
340 tup = make_tuple(obj); in structseq_contains()
341 if (!tup) in structseq_contains()
343 result = PySequence_Contains(tup, o); in structseq_contains()
344 Py_DECREF(tup); in structseq_contains()
351 PyObject *tup; in structseq_hash() local
353 tup = make_tuple((PyStructSequence*) obj); in structseq_hash()
354 if (!tup) in structseq_hash()
356 result = PyObject_Hash(tup); in structseq_hash()
357 Py_DECREF(tup); in structseq_hash()
364 PyObject *tup, *result; in structseq_richcompare() local
365 tup = make_tuple((PyStructSequence*) obj); in structseq_richcompare()
366 result = PyObject_RichCompare(tup, o2, op); in structseq_richcompare()
367 Py_DECREF(tup); in structseq_richcompare()
374 PyObject* tup; in structseq_reduce() local
383 tup = PyTuple_New(n_visible_fields); in structseq_reduce()
384 if (!tup) { in structseq_reduce()
390 Py_DECREF(tup); in structseq_reduce()
396 PyTuple_SET_ITEM(tup, i, self->ob_item[i]); in structseq_reduce()
405 result = Py_BuildValue("(O(OO))", Py_TYPE(self), tup, dict); in structseq_reduce()
407 Py_DECREF(tup); in structseq_reduce()