Lines Matching defs:raw

39     "BlockingIOError if the underlying raw stream is in non-blocking\n"
40 "mode and not ready; unlike their raw counterparts, they will never\n"
120 Disconnect this buffer from its underlying raw stream and return it.
122 After the raw stream has been detached, the buffer is in an unusable
139 "If the argument is positive, and the underlying raw stream is\n"
140 "not 'interactive', multiple raw reads may be issued to satisfy\n"
142 "interactive raw streams (as well as sockets and pipes), at most\n"
143 "one raw read will be issued, and a short result does not imply\n"
148 "Returns None if the underlying raw stream was open in non-blocking\n"
159 "to the underlying raw stream. A short result does not imply\n"
177 "underlying raw stream cannot accept more data at the moment.\n");
189 PyObject *raw;
197 class) *and* the raw stream is a vanilla FileIO object. */
200 /* Absolute position inside the raw stream (-1 if unknown). */
207 /* Position of the raw stream in the buffer. */
239 * The absolute position of the raw stream is cached, if possible, in the
241 on the raw stream. If not sure, it can be reinitialized by calling
242 _buffered_raw_tell(), which queries the raw stream (_buffered_raw_seek()
248 raw stream (according to the buffer size), but for now it is only done
304 "raw stream has been detached"); \
316 "raw stream has been detached"); \
327 ? _PyFileIO_closed(self->raw) \
376 Py_CLEAR(self->raw);
403 Py_VISIT(self->raw);
412 Py_CLEAR(self->raw);
423 if (self->ok && self->raw) {
425 r = PyObject_CallMethodOneArg(self->raw, &_Py_ID(_dealloc_warn), source);
446 return PyObject_CallMethodNoArgs(self->raw, &_Py_ID(flush));
455 res = PyObject_GetAttr(self->raw, &_Py_ID(closed));
467 return PyObject_GetAttr(self->raw, &_Py_ID(closed));
506 res = PyObject_CallMethodNoArgs(self->raw, &_Py_ID(close));
531 PyObject *raw, *res;
537 raw = self->raw;
538 self->raw = NULL;
541 return raw;
550 return PyObject_CallMethodNoArgs(self->raw, &_Py_ID(seekable));
557 return PyObject_CallMethodNoArgs(self->raw, &_Py_ID(readable));
564 return PyObject_CallMethodNoArgs(self->raw, &_Py_ID(writable));
571 return PyObject_GetAttr(self->raw, &_Py_ID(name));
578 return PyObject_GetAttr(self->raw, &_Py_ID(mode));
587 return PyObject_CallMethodNoArgs(self->raw, &_Py_ID(fileno));
594 return PyObject_CallMethodNoArgs(self->raw, &_Py_ID(isatty));
658 res = PyObject_CallMethodNoArgs(self->raw, &_Py_ID(tell));
688 res = PyObject_CallMethodObjArgs(self->raw, &_Py_ID(seek),
792 /* Rewind the raw stream so that its position corresponds to
916 only return buffered bytes. Otherwise, we do one raw read. */
1090 /* Now we try to get some more from the raw stream */
1227 if (_PyIOBase_check_seekable(self->raw, Py_True) == NULL)
1264 /* Fallback: invoke raw seek() method and clear buffer */
1314 res = PyObject_CallMethodOneArg(self->raw, &_Py_ID(truncate), pos);
1408 raw: object
1411 Create a new buffered reader using the given readable raw IO object.
1415 _io_BufferedReader___init___impl(buffered *self, PyObject *raw,
1422 if (_PyIOBase_check_readable(raw, Py_True) == NULL)
1425 Py_INCREF(raw);
1426 Py_XSETREF(self->raw, raw);
1436 Py_IS_TYPE(raw, &PyFileIO_Type));
1460 res = PyObject_CallMethodOneArg(self->raw, &_Py_ID(readinto), memobj);
1476 "raw readinto() failed"
1483 "raw readinto() returned invalid length %zd "
1533 if (_PyObject_LookupAttr(self->raw, &_Py_ID(readall), &readall) < 0) {
1568 data = PyObject_CallMethodNoArgs(self->raw, &_Py_ID(read));
1733 /* Fill the buffer from the raw stream, and copy it to the result. */
1759 raw: object
1764 The constructor creates a BufferedWriter for the given writeable raw
1770 _io_BufferedWriter___init___impl(buffered *self, PyObject *raw,
1777 if (_PyIOBase_check_writable(raw, Py_True) == NULL)
1780 Py_INCREF(raw);
1781 Py_XSETREF(self->raw, raw);
1792 Py_IS_TYPE(raw, &PyFileIO_Type));
1818 res = PyObject_CallMethodOneArg(self->raw, &_Py_ID(write), memobj);
1836 "raw write() returned invalid length %zd "
1986 /* Adjust the raw stream position if it is away from the logical stream
1989 the raw stream by itself).
2008 /* Write failed because raw file is non-blocking */
2268 raw: object
2274 raw, given in the first argument. If the buffer_size is omitted it
2279 _io_BufferedRandom___init___impl(buffered *self, PyObject *raw,
2286 if (_PyIOBase_check_seekable(raw, Py_True) == NULL)
2288 if (_PyIOBase_check_readable(raw, Py_True) == NULL)
2290 if (_PyIOBase_check_writable(raw, Py_True) == NULL)
2293 Py_INCREF(raw);
2294 Py_XSETREF(self->raw, raw);
2306 Py_IS_TYPE(raw, &PyFileIO_Type));
2402 {"raw", T_OBJECT, offsetof(buffered, raw), READONLY},
2488 {"raw", T_OBJECT, offsetof(buffered, raw), READONLY},
2659 {"raw", T_OBJECT, offsetof(buffered, raw), READONLY},