pyre.calc.Memo

Module Contents

class pyre.calc.Memo.Memo

A mix-in class that implements value memoization

dirty = True
_value
getValue(self, **kwds)

Override the node value retriever and return the contents of my value cache if it is up to date; otherwise, recompute the value and update the cache

setValue(self, value, **kwds)

Override the value setter to refresh my cache and notify my observers

flush(self, **kwds)

Invalidate my cache and notify my observers