Python, Pyramid, Django | 10:05Pyramidの場合はreifyデコレータを使うまたshirlyのソースコードを読んでいたのですが、"?"と思うことがありました。 from pyramid.decorator import reify class ShirlyResource(object): …(中略) def query_project(self): return Project.query def add_project(self, project): return DBSession.add(project) @reify def project(self): if 'project_name' not in self.request.matchdict: return None try: project = self.query_project().