def categories(self):
    '''
    List of categories of a page.
    '''

    if not getattr(self, '_categories', False):
      self._categories = [re.sub(r'^Category:', '', x) for x in
        [link['title']
        for link in self.__continued_query({
          'prop': 'categories',
          'cllimit': 'max'
        })
      ]]

    return self._categories
def categories ( self ) : if not getattr ( self , '_categories' , False ) : self . _categories = [ re . sub ( r'^Category:' , '' , x ) for x in [ link [ 'title' ] for link in self . __continued_query ( { 'prop' : 'categories' , 'cllimit' : 'max' } ) ] ] return self . _categories
List of categories of a page.