[sage-support] Re: Python decorators to implement Maple's "options remember"

2008-04-21 Thread Carlo Hamalainen
On Mon, Apr 21, 2008 at 10:46 PM, Mike Hansen <[EMAIL PROTECTED]> wrote: > Sage already has two decorators that provide this functionality. > > @func_persist will remember the computed values across Sage sessions > since the results are written to a file > @CachedFunction just stores the resul

[sage-support] Re: Python decorators to implement Maple's "options remember"

2008-04-21 Thread Mike Hansen
Hello, Sage already has two decorators that provide this functionality. @func_persist will remember the computed values across Sage sessions since the results are written to a file @CachedFunction just stores the results in memory Note that all of the arguments to the function whose results you