Pr 68 rebased
MemorizedFunc.load_output has been deprecated, since MemorizedResult provides the same functionality. Also deprecated format_signature and format_call in the same class, because they have been replaced by non exported functions.
When verbose is greater than 1, the function call that created the memorized value is displayed. The computation duration is accessible in the "duration" attribute of a MemorizedResult instance.
A subdirectory was created by tests and not removed (teardown was missing)
Added attributes description
This was done to add a keyword parameter to the function.
MemorizedResult does not take the full path toward cached value, but its components: cachedir, function name, arguments hash. Some refactoring was performed.
Make this method a standalone function in func_inspect.py. Left a compatibility method in MemorizedFunc.
It is now a standalone function in func_inspect.py
Memory(cachedir=None).cache(func) does not return func anymore, but NotMemorizedFunc(func) instead. This is just to consistently provide call_and_shelve() in all cases. Added pickle support for NotMemorizedFunc.
The "reference" keyword on MemorizeFunc has been dropped, in favor of a new method "call_and_shelve".
Instead of returning the output of the memoized function, MemorizedFunc can output a reference to the cache data. This implementation is still very rough.
FIX: _mk_exception for raw 'Exceptions' raised
FIX #72: output_dir kwarg in Memory.cache