Message330369
I concur with Victor. The proposed API change defeats the purpose of the cache. By design, the intent of the cache is to reuse the previously computed value.
I can add something like this to the docs: """In general, the LRU cache should only be used when you want to reuse previously computed values. Accordingly, it doesn't make sense to cache functions with side-effects, functions that need to create distinct mutable objects on each call, or impure functions such as time() or random().""" |
|
Date |
User |
Action |
Args |
2018-11-24 01:16:45 | rhettinger | set | recipients:
+ rhettinger, vstinner, bolorsociedad |
2018-11-24 01:16:45 | rhettinger | set | messageid: <1543022205.18.0.788709270274.issue35300@psf.upfronthosting.co.za> |
2018-11-24 01:16:45 | rhettinger | link | issue35300 messages |
2018-11-24 01:16:43 | rhettinger | create | |
|