Message205147
Perhaps following technique can be used to prevent object's life prolongation:
def spam(self, *args, **kwargs):
@lru_cache(maxsize=20)
def spam(foo, bar=1, *, baz=None):
...
self.spam = spam
return self.spam(*args, **kwargs) |
|
Date |
User |
Action |
Args |
2013-12-03 20:47:08 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, ncoghlan, thesheep |
2013-12-03 20:47:08 | serhiy.storchaka | set | messageid: <1386103628.17.0.285120539478.issue19859@psf.upfronthosting.co.za> |
2013-12-03 20:47:08 | serhiy.storchaka | link | issue19859 messages |
2013-12-03 20:47:08 | serhiy.storchaka | create | |
|