def read(self, n):
while len(self.pool) < n:<EOL><INDENT>self.cur = self.files.next()<EOL>self.pool = numpy.append(self.pool,<EOL>self.fetch(self.cur), axis=<NUM_LIT:0>)<EOL><DEDENT>rt = self.pool[:n]<EOL>if n == len(self.pool):<EOL><INDENT>self.pool = self.fetch(None)<EOL><DEDENT>else:<EOL><INDENT>self.pool = self.pool[n:]<EOL><DEDENT>return rt<EOL>
return at most n array items, move the cursor.