Best way to 'intelligently' reset memoized property values in Python when dependencies change
Best way to 'intelligently' reset memoized property values in Python when dependencies change Question: I’m writing a class with various attributes that I only want to calculate when necessary (lazy evaluation). However, more importantly, I want to make sure that ‘stale’ values are not returned if any of the attributes that their calculation depended on …