def get_next_bins(self, n):
<EOL>if n > self.available():<EOL><INDENT>raise IllegalState('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>next_list = []<EOL>i = <NUM_LIT:0><EOL>while i < n:<EOL><INDENT>try:<EOL><INDENT>next_list.append(next(self))<EOL><DEDENT>except StopIteration:<EOL><INDENT>break<EOL><DEDENT>i += <NUM_LIT:1><EOL><DEDENT>return next_list<EOL><DEDENT>
gets next n objects from list