Lines Matching defs:result
359 PyObject *result = NULL;
395 result = PyUnicode_FromFormat("%s(%R%U)", Py_TYPE(pto)->tp_name,
401 return result;
572 keyobject *result;
578 result = PyObject_GC_New(keyobject, Py_TYPE(ko));
579 if (result == NULL) {
583 result->cmp = ko->cmp;
585 result->object = object;
586 PyObject_GC_Track(result);
587 return (PyObject *)result;
614 * result into true or false (or error).
658 PyObject *seq, *func, *result = NULL, *it;
660 if (!PyArg_UnpackTuple(args, "reduce", 2, 3, &func, &seq, &result))
662 if (result != NULL)
663 Py_INCREF(result);
670 Py_XDECREF(result);
693 if (result == NULL)
694 result = op2;
698 Py_XSETREF(_PyTuple_ITEMS(args)[0], result);
700 if ((result = PyObject_Call(func, args, NULL)) == NULL) {
713 if (result == NULL)
718 return result;
722 Py_XDECREF(result);
747 limit updates to just the key and result fields. However, in the C
765 PyObject *key, *result;
773 Py_XDECREF(link->result);
883 PyObject *result;
886 result = PyObject_Call(self->func, args, kwds);
887 if (!result)
889 return result;
895 PyObject *result;
905 result = _PyDict_GetItem_KnownHash(self->cache, key, hash);
906 if (result) {
907 Py_INCREF(result);
910 return result;
917 result = PyObject_Call(self->func, args, kwds);
918 if (!result) {
922 if (_PyDict_SetItem_KnownHash(self->cache, key, result, hash) < 0) {
923 Py_DECREF(result);
928 return result;
995 PyObject *key, *result, *testresult;
1010 result = link->result;
1012 Py_INCREF(result);
1014 return result;
1021 result = PyObject_Call(self->func, args, kwds);
1022 if (!result) {
1030 done, we need only return the computed result. */
1032 return result;
1040 Py_DECREF(result);
1045 proceed normally and update the cache with the new result. */
1051 /* Cache is not full, so put the result in a new link */
1056 Py_DECREF(result);
1062 link->result = result;
1074 Py_INCREF(result); /* for return */
1075 return result;
1079 one, we reuse the link for the new key and result and move it
1109 return result;
1119 Py_DECREF(result);
1122 /* Keep a reference to the old key and old result to prevent their
1127 oldresult = link->result;
1131 link->result = result;
1149 Py_INCREF(result); /* for return */
1153 return result;
1353 Py_VISIT(link->result);