(self)
return num_pages
Number of available pages.
Number of available pages.
Number of available pages .
def num_pages(self):
        """Number of available pages."""
        num_pages = self._video_mem_size // self._page_size
        if self._max_pages:
            return min(self._max_pages, num_pages)
        return num_pages
def num_pages ( self ) : num_pages = self . _video_mem_size // self . _page_size if self . _max_pages : return min ( self . _max_pages , num_pages ) return num_pages