code: def readlines(self, sizehint=None):
          
          lines = []
          byte_count = 0
          while True:
              line = self.readline()
              if len(line) == 0:
                  break
              lines.append(line)
              byte_count += len(line)
              if (sizehint is not None) and (byte_count >= sizehint):
                  break
          return lines
docs: Read all remaining lines using `readline` and return them as a list.
          If the optional ``sizehint`` argument is present, instead of reading up
          to EOF, whole lines totalling approximately sizehint bytes (possibly
          after rounding up to an internal buffer size) are read.
  
          :param int sizehint: desired maximum number of bytes to read.
          :returns: list of lines read from the file.