This ticket adds the following features to cached methods to make them
behave more like usual methods:
This makes them compatible with, e.g., deprecated_function_alias:
class Foo:
@cached_method
def f(self):
...
bar = deprecated_function_alias(12963, f)
CC: @simon-king-jena
Component: misc
Author: Nicolas M. Thiéry
Branch: 6b18661
Reviewer: Simon King
Issue created by migration from https://trac.sagemath.org/ticket/15759