#5449: [with patch, needs review] Implements a variant of @cached_method with
cache stored in the parent
---------------------+------------------------------------------------------
Reporter: nthiery | Owner: nthiery
Type: defect | Status: new
Priority: major | Milestone: sage-4.0
Component: misc | Keywords: cached_method, cache
---------------------+------------------------------------------------------
Changes (by nthiery):
* keywords: => cached_method, cache
* milestone: sage-combinat => sage-4.0
Old description:
> 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.
>
> Comments, suggestions?
>
> @cached_in_parent_method ?
>
> I'll write a quick patch in sage-combinat
New description:
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.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5449#comment:2>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en
-~----------~----~----~----~------~----~------~--~---