Message205146
Weak references make no sense in most cases when arguments disappear just after function call. For the self argument of a method it makes more sense. Perhaps lru_cache can return not a function, but a descriptor. This will allow implement special processing of first argument.
Or new decorator lru_cache_method should be added. |
|
Date |
User |
Action |
Args |
2013-12-03 20:30:05 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, ncoghlan, thesheep |
2013-12-03 20:30:04 | serhiy.storchaka | set | messageid: <1386102604.95.0.629645382385.issue19859@psf.upfronthosting.co.za> |
2013-12-03 20:30:04 | serhiy.storchaka | link | issue19859 messages |
2013-12-03 20:30:04 | serhiy.storchaka | create | |
|