'Fetch several rows'

def fetchmany(self, size=None):

    self._check_executed()
    if (self._rows is None):
        return ()
    end = (self.rownumber + (size or self.arraysize))
    result = self._rows[self.rownumber:end]
    self.rownumber = min(end, len(self._rows))
    return result
