Lines Matching defs:read
689 PyObject *read; /* read() method of the input stream. */
1253 r = PyObject_CallFunction(self->read, "n", consumed);
1268 If `n` is READ_WHOLE_LINE, read a whole line. Otherwise, read up to `n`
1271 Update the unpickler's input buffer with the newly-read data. Returns -1 on
1272 failure; on success, returns the number of bytes read from the file.
1284 assert(self->read != NULL);
1318 data = _Pickle_FastCall(self->read, len);
1338 "read would overflow (invalid bytecode)");
1345 if (!self->read)
1381 /* Entire read was satisfied from buffer */
1387 if (!self->read) {
1396 /* readinto() not supported on file-like object, fall back to read()
1402 PyObject* data = _Pickle_FastCall(self->read, len);
1408 "read() returned non-bytes object (%R)",
1460 number of chars read. */
1488 Returns the number of chars read, or -1 on failure. */
1502 if (!self->read)
1614 self->read = NULL;
1653 (void)_PyObject_LookupAttr(file, &_Py_ID(read), &self->read);
1655 if (!self->readline || !self->read) {
1658 "file must have 'read' and 'readline' attributes");
1660 Py_CLEAR(self->read);
2286 file.read calls in the loader.
4709 version of Python needed to read the pickle produced.
5628 /* Original object is read-only, no need to replace it */
6997 not call Unpickler.__init__(). Here, we simply ensure that self->read
6999 if (unpickler->read == NULL) {
7154 Py_XDECREF(self->read);
7178 Py_VISIT(self->read);
7191 Py_CLEAR(self->read);
7231 The argument *file* must have two methods, a read() method that takes
7243 respectively. The *encoding* can be 'bytes' to read these 8-bit
7254 if (self->read != NULL)
7658 version of Python needed to read the pickle produced.
7728 version of Python needed to read the pickle produced.
7789 The argument *file* must have two methods, a read() method that takes
7801 respectively. The *encoding* can be 'bytes' to read these 8-bit
7861 respectively. The *encoding* can be 'bytes' to read these 8-bit