Lines Matching defs:result
328 PyObject *mp, *key, *result;
336 result = _PyDict_GetItem_KnownHash(mp, key, (Py_hash_t)hash);
337 if (result == NULL && !PyErr_Occurred()) {
342 Py_XINCREF(result);
343 return result;
1067 "Py_BuildValue(\"N\") returned wrong result");
1204 PyObject *result = NULL;
1292 result = Py_NewRef(Py_None);
1301 return result;
1423 and return the result.
1816 PyObject *arg, *result;
1824 result = PyBytes_FromString(str);
1826 return result;
1832 PyObject *arg, *result;
1840 result = PyBytes_FromString(str);
1842 return result;
1848 PyObject *arg, *result;
1862 result = PyBytes_FromStringAndSize(str, size);
1865 return result;
1871 PyObject *arg, *result;
1885 result = PyBytes_FromStringAndSize(str, size);
1888 return result;
1939 int result;
1976 result = PyArg_ParseTupleAndKeywords(sub_args, sub_kwargs,
1981 if (result) {
2189 PyObject *unicode, *result;
2209 result = PyUnicode_FromWideChar(buffer, buflen);
2211 if (result == NULL)
2214 return Py_BuildValue("(Nn)", result, size);
2220 PyObject *unicode, *result;
2231 result = PyUnicode_FromWideChar(buffer, size + 1);
2233 if (result == NULL)
2235 return Py_BuildValue("(Nn)", result, size);
2241 PyObject *unicode, *result;
2263 result = PyUnicode_FromKindAndData(PyUnicode_4BYTE_KIND, buffer, buf_len);
2265 return result;
2289 PyObject *unicode, *result;
2302 result = PyBytes_FromString(buffer);
2303 if (result == NULL) {
2307 return Py_BuildValue("(Nn)", result, utf8_len);
2316 Py_ssize_t result;
2324 result = PyUnicode_FindChar(str, (Py_UCS4)ch, start, end, direction);
2325 if (result == -2)
2328 return PyLong_FromSsize_t(result);
2394 PyObject *result;
2406 result = PyBytes_FromStringAndSize(buffer.buf, buffer.len);
2408 return result;
2418 int result;
2422 if (!(result = PyArg_ParseTuple(tuple, "|:test_empty_argparse"))) {
2428 result = PyArg_ParseTupleAndKeywords(tuple, dict, "|:test_empty_argparse", kwlist);
2432 if (!result) {
2500 "wrong result for _PyLong_NumBits");
2503 "wrong result for _PyLong_Sign");
3142 PyObject *result;
3146 result = PyUnicode_FromFormat(FORMAT, (TYPE)1); \
3147 if (result == NULL) \
3149 if (!_PyUnicode_EqualToASCIIString(result, "1")) { \
3153 Py_DECREF(result)
3172 Py_XDECREF(result);
3182 int result;
3185 result = PyUnicode_CompareWithASCIIString(py_s, "str");
3187 if (!result) {
3205 double result;
3209 result = PyOS_string_to_double(STR, NULL, NULL); \
3210 if (result == -1.0 && PyErr_Occurred()) \
3212 if (result != (double)expected) { \
3218 result = PyOS_string_to_double(STR, NULL, NULL); \
3219 if (result == -1.0 && PyErr_Occurred()) { \
3419 PyObject *single, **multiple, *op1, *result;
3500 result = PyNumber_Add(op1, op1);
3501 Py_DECREF(result);
3513 result = PyNumber_Add(op1, op1);
3514 Py_XDECREF(result);
3530 int result;
3536 result = PyTraceBack_Print(traceback, file);
3537 if (result < 0)
3606 /* To test that the result of PyCode_NewEmpty has the right members. */
3679 "test_from_contiguous: incorrect result");
3692 "test_from_contiguous: incorrect result");
3757 Py_ssize_t result;
3764 result = PyBuffer_SizeFromFormat(format);
3765 if (result == -1) {
3769 return PyLong_FromSsize_t(result);
4782 /* invalid call: return a result with an error set,
6074 PyObject *result = NULL;
6187 result = PyEval_EvalCodeEx(
6206 return result;
6212 PyObject *result = PyDict_New();
6213 if (!result) {
6218 return result;