def fetchmany(self, count=None):
if count is None:<EOL><INDENT>count = self.arraysize<EOL><DEDENT>if count == <NUM_LIT:0>:<EOL><INDENT>return self.fetchall()<EOL><DEDENT>result = []<EOL>for i in range(count):<EOL><INDENT>try:<EOL><INDENT>result.append(self.next())<EOL><DEDENT>except StopIteration:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return result<EOL>
Fetch the next set of rows of a query result, returning a sequence of
sequences (e.g. a list of tuples). An empty sequence is returned when
no more rows are available.