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 <rep...@bugs.python.org>
<http://bugs.python.org/issue24969>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to