def __next__(self):
try:<EOL><INDENT>results = self._stride_buffer.pop()<EOL><DEDENT>except (IndexError, AttributeError):<EOL><INDENT>self._rebuffer()<EOL>results = self._stride_buffer.pop()<EOL><DEDENT>if not results:<EOL><INDENT>raise StopIteration<EOL><DEDENT>return results<EOL>
Returns the next sequence of results, given stride and n.