The cache module.

class nutils.cache.Wrapper(func)[source]

function decorator that caches results by arguments

class nutils.cache.WrapperCache[source]

maintains a cache for Wrapper instances

class nutils.cache.WrapperDummyCache[source]

placeholder object

class nutils.cache.FileCache(*args)[source]



decorator for deep object replacement

Generates a deep replacement method for Immutable objects based on a callable that is applied (recursively) on individual constructor arguments.

Parameters:func (callable which maps (obj, ..) onto replaced_obj) –
Returns:The method that searches the object to perform the replacements.
Return type:callable