autodep | index /home/beni/hacks/python/autodep.py |
Automagical attribute dependency tracking.
This module implements a framework for dependency-driven computation for
object attributes. You simply inherit from `Invalidator` and wrap functions
for computing attributes with `autodep` instead of `property`. The value of
such an attribute is cached and deleted when any attribute it depends on is
set or deleted. Moreover, the dependencies are automagically detected by
noticing which attributes you accessed from your function.
This module works as designed but I feel it could be designed better...
Modules | ||||||
|
Classes | ||||||||||
|
Functions | ||
|