On Tue, Aug 2, 2011 at 10:02 AM, VictorMiller <[email protected]> wrote:
> Is there any documentation for the decorators that are available in
> Sage?  I couldn't find anything about them in the reference manual?

Individual decorators have lots of documentation, but I'm not aware of
a centralized list.
Here are the ones I personally love.  For each, you can just type the
name followed by a question
mark for extensive help.

   * parallel -- gives a function a parallel interface, allowing it to
be called with a list of inputs, whose values will be computed in
parallel.

   * cached_method -- a cached version of an instance method of a class

   * cached_function -- cached version of a function, which only
recomputes values it hasn't already computed.

   * disk_cached_function -- documentation of this not so good; but
like cached_function, except persists between sessions;  I wish there
were a version that used sqlite, but there isn't as far as I know.

   * interact -- create interactive Sage notebook to a function

   * fork -- forks the function before calling, making it immune to
memory leaks, segfaults, etc.  This is only available at
http://trac.sagemath.org/sage_trac/ticket/9631, which has been sitting
in "needs review" state for 9 months.  Please, please, somebody review
it !!


There are also numerous decorators defined here:

   sage.misc.decorators

that are mainly used in implementing Sage.


>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to 
> [email protected]
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to