Lines Matching defs:file
304 * But we use TYPE_REF always for interned string, to PYC file stable
966 * created whenever it is seen in the file, as opposed to
1562 /* Return size of file in bytes; < 0 if unknown or INT_MAX if too big */
1577 /* If we can get the size of the file up-front, and it's reasonably small,
1579 * than reading a byte at a time from file; speeds .pyc imports.
1580 * CAUTION: since this may read the entire remainder of the file, don't
1581 * call it unless you know you're done with the file.
1600 /* We don't have fstat, or we do but the file is larger than
1695 file: object
1696 Must be a writeable binary file.
1701 Write the value on the open file.
1705 to the file. The object will not be properly read back by load().
1709 marshal_dump_impl(PyObject *module, PyObject *value, PyObject *file,
1720 res = _PyObject_CallMethodOneArg(file, &_Py_ID(write), s);
1728 file: object
1729 Must be readable binary file.
1732 Read one value from the open file and return it.
1743 marshal_load(PyObject *module, PyObject *file)
1756 data = _PyObject_CallMethod(file, &_Py_ID(read), "i", 0);
1761 "file.read() returned not bytes but %.100s",
1768 rf.readable = file;
1792 Return the bytes object that would be written to a file by dump(value, file).
1870 dump() -- write value to a file\n\
1871 load() -- read value from a file\n\