Lines Matching defs:result
824 PyObject *result = PyObject_CallObject(PyExc_BaseExceptionGroup, args);
826 return result;
900 PyBaseExceptionGroupObject *_orig, PyObject *excs, PyObject **result)
902 /* Sets *result to an ExceptionGroup wrapping excs with metadata from
903 * _orig. If excs is empty, sets *result to NULL.
912 *result = NULL;
973 *result = eg;
985 /* A set of the IDs of leaf exceptions to include in the result.
1074 _exceptiongroup_split_result *result)
1076 result->match = NULL;
1077 result->rest = NULL;
1087 result->match = Py_NewRef(exc);
1093 result->rest = Py_NewRef(exc);
1157 /* construct result */
1158 if (exceptiongroup_subset(eg, match_list, &result->match) < 0) {
1164 if (exceptiongroup_subset(eg, rest_list, &result->rest) < 0) {
1165 Py_CLEAR(result->match);
1174 Py_CLEAR(result->match);
1175 Py_CLEAR(result->rest);
1201 PyObject *result = PyTuple_Pack(
1208 return result;
1232 PyObject *result = Py_NewRef(
1237 return result;
1316 PyObject *result = split_result.match ?
1319 return result;
1389 PyObject *result = NULL;
1415 result = reraised_eg;
1427 result = _PyExc_CreateExceptionGroup("", raised_list);
1430 result = Py_NewRef(PyList_GetItem(raised_list, 0));
1432 if (result == NULL) {
1440 return result;
2446 PyObject *result;
2468 result = PyUnicode_FromFormat("%S (%U, line %ld)",
2473 result = PyUnicode_FromFormat("%S (%U)",
2477 result = PyUnicode_FromFormat("%S (line %ld)",
2481 return result;
2906 PyObject *result = NULL;
2932 result = PyUnicode_FromFormat(
2940 result = PyUnicode_FromFormat(
2950 return result;
3019 PyObject *result = NULL;
3038 result = PyUnicode_FromFormat(
3046 result = PyUnicode_FromFormat(
3057 return result;
3116 PyObject *result = NULL;
3138 result = PyUnicode_FromFormat(
3145 result = PyUnicode_FromFormat(
3154 return result;