[issue24969] functools.lru_cache: a way to set decorator arguments at runtime
R. David Murray
report at bugs.python.org
Mon Aug 31 17:54:08 CEST 2015
R. David Murray added the comment:
How is (1) different from:
@lru_cache(maxsize=1000)
def foo_long(self, arg1...)
As for computing it at runtime: if you need to compute it, you can compute it and *then* define the decorator wrapped function.
----------
nosy: +r.david.murray
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24969>
_______________________________________
More information about the Python-bugs-list
mailing list