Lines Matching defs:res

131     PyObject *res;
135 ret = _PyObject_LookupAttr(self, &_Py_ID(__IOBase_closed), &res);
136 Py_XDECREF(res);
179 PyObject *res;
183 closed = _PyObject_LookupAttr(self, &_Py_ID(closed), &res);
185 closed = PyObject_IsTrue(res);
186 Py_DECREF(res);
223 PyObject *res, *exc, *val, *tb;
233 res = PyObject_CallMethodNoArgs(self, &_Py_ID(flush));
239 Py_CLEAR(res);
242 if (res == NULL)
245 Py_DECREF(res);
254 PyObject *res;
263 if (_PyObject_LookupAttr(self, &_Py_ID(closed), &res) <= 0) {
268 closed = PyObject_IsTrue(res);
269 Py_DECREF(res);
278 res = PyObject_CallMethodNoArgs((PyObject *)self, &_Py_ID(close));
282 if (res == NULL) {
295 Py_DECREF(res);
379 PyObject *res = PyObject_CallMethodNoArgs(self, &_Py_ID(seekable));
380 if (res == NULL)
382 if (res != Py_True) {
383 Py_CLEAR(res);
388 Py_DECREF(res);
390 return res;
412 PyObject *res = PyObject_CallMethodNoArgs(self, &_Py_ID(readable));
413 if (res == NULL)
415 if (res != Py_True) {
416 Py_CLEAR(res);
421 Py_DECREF(res);
423 return res;
445 PyObject *res = PyObject_CallMethodNoArgs(self, &_Py_ID(writable));
446 if (res == NULL)
448 if (res != Py_True) {
449 Py_CLEAR(res);
454 Py_DECREF(res);
456 return res;
756 PyObject *iter, *res;
776 res = NULL;
778 res = PyObject_CallMethodObjArgs(self, &_Py_ID(write), line, NULL);
779 } while (res == NULL && _PyIO_trap_eintr());
781 if (res == NULL) {
785 Py_DECREF(res);
910 PyObject *b, *res;
922 res = PyObject_CallMethodObjArgs(self, &_Py_ID(readinto), b, NULL);
923 if (res == NULL || res == Py_None) {
925 return res;
928 n = PyNumber_AsSsize_t(res, PyExc_ValueError);
929 Py_DECREF(res);
935 res = PyBytes_FromStringAndSize(PyByteArray_AsString(b), n);
937 return res;