You can find documentation on cached_property .
The BaseHandler class will be called often later. I understand that to avoid overhead when calling jinja2.get_jinja2(app=self.app) such a link is evaluated only the first time, and then returned many times later, that is, every time the view is called.
For this to happen in the code, see this example , where each view is derived from the same BaseHandler class.
source share