Michael- FYI, memoized_property isn't documented. it looks to be in the active source, and there is a recipe for a roll-your-own memoized orm properties.
On Monday, May 25, 2015 at 11:43:58 AM UTC-4, c.b...@posteo.jp wrote: > > I am quite new to Python and not familiar with the decorator concept. > What do you mean with "memoized thing"? And why could the decorators > help me here? SqlAlchemy and Pyramid both offer decorators that memoize/cache the results of a property call. They do all the case-logic your example uses. An example would be using a memoizing decorator like this: @memoized def session(self): return self.CreateSession() which would only execute the first time, and use a memoized/cached value on subsequent calls. The different frameworks that offer memoizing decorators implement them differently. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.