return decorator
return decorator_factory


class Profile(BeautifulSoup):

    def __init__(self, page_source):
        super().__init__(page_source)
self._cache = {}

@cached_resource('_cache')
def username(self):
    return self.title.split(':')[0]
Is it okay for decorators to access private members of a class?