Lines Matching defs:read
33 Note that BZ2File provides a *binary* file interface - data read is
42 object, which will be used to read or write the compressed data.
84 elif hasattr(filename, "read") or hasattr(filename, "write"):
157 def read(self, size=-1):
160 If size is negative or omitted, read until EOF is reached.
164 return self._buffer.read(size)
181 Returns the number of bytes read (0 for EOF).
190 non-negative, no more than size bytes will be read (in which
203 size can be specified to control the number of lines read: no
204 further lines will be read once the total size of the lines read
276 PathLike object), or an existing file object to read from or write