Home | History | Annotate | Download | only in python2.7

Lines Matching defs:read

417         # For str->unicode decoding the first read will promote it to unicode
424 def read(self, size=-1, chars=-1, firstline=False):
429 chars indicates the number of characters to read from the
430 stream. read() will never return more than chars
435 read from the stream for decoding purposes. The decoder
437 -1 indicates to read and decode as much as possible. size
444 next call to read().
446 The method should use a greedy read strategy meaning that
447 it should read as much data as is allowed within the
450 on the stream, these should be read too.
457 # read until we get the required number of characters (if available)
471 newdata = self.stream.read()
473 newdata = self.stream.read(size)
505 """ Read one line from the input stream and return the
509 read() method.
512 # If we have lines cached from an earlier read, return
528 # If size is given, we call read() only once
530 data = self.read(readsize, firstline=True)
532 # If we're at a "\r" read one extra character (which might
536 data += self.read(size=1, chars=1)
578 """ Read all lines available on the input stream
588 data = self.read()
641 work in both read and write modes.
669 def read(self, size=-1):
671 return self.reader.read(size)
738 In the other direction, data is read from the stream using a
751 input to .read() and output of .write()) while
779 def read(self, size=-1):
781 data = self.reader.read(size)
796 data = self.reader.read()
854 open the file in binary read mode.
900 Strings are read from the file using file_encoding and then