Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements a variant of @cached_method with cache stored in the parent #5449

Closed
nthiery opened this issue Mar 6, 2009 · 5 comments
Closed
Assignees
Milestone

Comments

@nthiery
Copy link
Contributor

nthiery commented Mar 6, 2009

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.

CC: @sagetrac-sage-combinat

Component: misc

Keywords: cached_method, cache

Issue created by migration from https://trac.sagemath.org/ticket/5449

@nthiery nthiery self-assigned this Mar 6, 2009
@nthiery
Copy link
Contributor Author

nthiery commented May 2, 2009

Changed keywords from none to cached_method, cache

@nthiery

This comment has been minimized.

@nthiery
Copy link
Contributor Author

nthiery commented May 2, 2009

comment:2

Attachment: cached_in_parent_method-5449-submitted.patch.gz

@nthiery nthiery added this to the sage-4.0 milestone May 2, 2009
@nthiery nthiery changed the title Implement @cache_method with cache stored in the parent Implements a variant of @cached_method with cache stored in the parent May 2, 2009
@roed314
Copy link
Contributor

roed314 commented May 12, 2009

comment:3

Passes doctests, good documentation.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented May 22, 2009

comment:5

Merged in Sage 4.0.rc1.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed May 22, 2009
@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-4.0.1, sage-4.0 May 22, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants