def iter_pages(self, left_edge=<NUM_LIT:1>, left_current=<NUM_LIT:1>, right_current=<NUM_LIT:3>,<EOL>right_edge=<NUM_LIT:1>):
last = <NUM_LIT:0><EOL>for num in range(<NUM_LIT:1>, self.pages + <NUM_LIT:1>):<EOL><INDENT>if num <= left_edge or(num > self.page - left_current - <NUM_LIT:1> and<EOL>num < self.page + right_current) ornum > self.pages - right_edge:<EOL><INDENT>if last + <NUM_LIT:1> != num:<EOL><INDENT>yield None<EOL><DEDENT>yield num<EOL>last = num<EOL><DEDENT><DEDENT>
Iterate the pages.