def _set_lastpage ( self ) : self . last_page = ( len ( self . _page_data ) - 1 ) // self . screen . page_size
increase page num python
Calculate value of class attribute last_page .
def _set_lastpage(self):
        """Calculate value of class attribute ``last_page``."""
        self.last_page = (len(self._page_data) - 1) // self.screen.page_size