parent
a4894d3e25
commit
6368e2e639
75 changed files with 194 additions and 156 deletions
|
|
@ -5839,7 +5839,7 @@ def cached_method(f):
|
|||
bound_args.apply_defaults()
|
||||
key = tuple(bound_args.arguments.values())[1:]
|
||||
|
||||
cache = vars(self).setdefault('__cached_method__cache', {}).setdefault(f.__name__, {})
|
||||
cache = vars(self).setdefault('_cached_method__cache', {}).setdefault(f.__name__, {})
|
||||
if key not in cache:
|
||||
cache[key] = f(self, *args, **kwargs)
|
||||
return cache[key]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue