def __iter__(self):
while self.on_going:<EOL><INDENT>yield self.group()<EOL><DEDENT>
Implementation of __iter__ to allow a standard interface:

        for group in Batch(iterable, 10):
            do_stuff(group)