Cache¶
The cache module.
-
nutils.cache.
replace
(func)[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