(self, hint=None)
return lines
Return a list of lines from the stream.

        hint can be specified to control the number of lines read: no more
        lines will be read if the total size (in bytes/characters) of all
        lines so far exceeds hint.
Return a list of lines from the stream.
Return a list of lines from the stream .
def readlines(self, hint=None):
        """Return a list of lines from the stream.

        hint can be specified to control the number of lines read: no more
        lines will be read if the total size (in bytes/characters) of all
        lines so far exceeds hint.
        """
        if hint is None or hint <= 0:
            return list(self)
        n = 0
        lines = []
        for line in self:
            lines.append(line)
            n += len(line)
            if n >= hint:
                break
        return lines
def readlines ( self , hint = None ) : if hint is None or hint <= 0 : return list ( self ) n = 0 lines = [ ] for line in self : lines . append ( line ) n += len ( line ) if n >= hint : break return lines