#16316: cached_function and cached_method for unhashable elements
-------------------------------------+-------------------------------------
Reporter: saraedum | Owner:
Type: enhancement | Status: needs_review
Priority: minor | Milestone: sage-6.3
Component: misc | Resolution:
Keywords: | Merged in:
Authors: Julian Rueth | Reviewers: Peter Bruin
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/tscrim/ticket/16316 | 7a9a6b2a3e4a68bfd3c9d8d6556a883e1d1161e0
Dependencies: #16251 | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by tscrim):
* commit: 22d1d8ebe8c9dbdfeee93c344e2a3c8d16325142 =>
7a9a6b2a3e4a68bfd3c9d8d6556a883e1d1161e0
* branch: u/saraedum/ticket/16316 => u/tscrim/ticket/16316
Comment:
If you're happy with my changes, then it's a positive review. Thanks for
dealing with my nagging.
Also in short, `@lazy_attribute` makes a method (with no input args)
behave like an attribute and is only called when necessary. IIRC it's
faster than usual python attribute access and using `@cached_method` with
no args.
----
New commits:
||[http://git.sagemath.org/sage.git/commit/?id=7a9a6b2a3e4a68bfd3c9d8d6556a883e1d1161e0
7a9a6b2]||{{{Review changes.}}}||
--
Ticket URL: <http://trac.sagemath.org/ticket/16316#comment:29>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.