(self, sizehint=None)
return result
Read multiple lines.
Read multiple lines.
Read multiple lines .
def readlines(self, sizehint=None):
        """Read multiple lines."""
        result = []
        for line in self:
            result.append(line)
            if sizehint is not None:
                sizehint -= len(line)
                if sizehint <= 0:
                    break
        return result
def readlines ( self , sizehint = None ) : result = [ ] for line in self : result . append ( line ) if sizehint is not None : sizehint -= len ( line ) if sizehint <= 0 : break return result