Lines Matching defs:read
2 /* Write Python objects to files and read them back.
213 2**15; for the sake of portability we'll always read and write them in base
671 PyObject *readable; /* Stream-like object being read from */
682 Py_ssize_t read = -1;
716 read = fread(p->buf, 1, n, p->fp);
730 read = PyNumber_AsSsize_t(res, PyExc_ValueError);
734 if (read != n) {
736 if (read > n)
738 "read() returned too much data: "
740 n, read);
743 "EOF read where not expected");
916 "EOF read where object expected");
996 "EOF read where object expected");
1154 "EOF read where object expected");
1578 * read it in one gulp and delegate to ...FromString() instead. Much quicker
1580 * CAUTION: since this may read the entire remainder of the file, don't
1601 * REASONABLE_FILE_LIMIT or malloc failed -- read a byte at a time.
1705 to the file. The object will not be properly read back by load().
1734 If no valid value is read (e.g. because the data has a different Python
1750 * Make a call to the read method, but read zero bytes.
1752 * has a read method which returns bytes.
1756 data = _PyObject_CallMethod(file, &_Py_ID(read), "i", 0);
1761 "file.read() returned not bytes but %.100s",
1847 "This module contains functions that can read and write Python values in\n\
1853 written and read by this module. The following types are supported:\n\
1871 load() -- read value from a file\n\
1873 loads() -- read value from a bytes-like object");