Skip to content

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

@nthiery

Description

@nthiery

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions