Ticket #5449 (closed defect: fixed)
[with patch, positive review] Implements a variant of @cached_method with cache stored in the parent
| Reported by: | nthiery | Owned by: | nthiery |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.0 |
| Component: | misc | Keywords: | cached_method, cache |
| Cc: | sage-combinat | Author(s): | |
| Report Upstream: | Reviewer(s): | ||
| Merged in: | Work issues: |
Description (last modified by nthiery) (diff)
When the elements of a parent do not have unique representation, it can be desirable to store the cache of (some of) the methods in the parent rather than in the element.
This patches implements a variant @cached_in_parent_method of the decorator @cached_method which does just this.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

