def next_items(self, n):
items = []<EOL>while len(items) < n:<EOL><INDENT>if self._line_ptr >= len(self._line):<EOL><INDENT>line = next(self._file).strip()<EOL>while not line or line[<NUM_LIT:0>] == "<STR_LIT:#>":<EOL><INDENT>line = next(self._file).strip()<EOL><DEDENT>self._line = self._re_delimiter.split(line)<EOL>self._line_ptr = <NUM_LIT:0><EOL><DEDENT>n_read = min(n - len(items), len(self._line) - self._line_ptr)<EOL>items.extend(self._line[self._line_ptr : self._line_ptr + n_read])<EOL>self._line_ptr += n_read<EOL><DEDENT>return items<EOL>
Returns the next n items.

        Throws StopIteration when there is not enough data to return n items.