Message280534
I've used the cached_property pattern across many different projects, and never yet wanted a TTL. The simple "cache for the lifetime of the instance" behavior is easy to implement, easy to understand, and useful for a wide range of scenarios where instances are effectively immutable. +1 for adding this to the stdlib (not just as a docs recipe); I'll see about providing a patch. |
|
| Date |
User |
Action |
Args |
| 2016-11-10 18:48:57 | carljm | set | recipients:
+ carljm, rhettinger, pitrou, vstinner, pydanny, eric.araujo, alex, r.david.murray, serhiy.storchaka, madison.may, Omer.Katz |
| 2016-11-10 18:48:57 | carljm | set | messageid: <[email protected]> |
| 2016-11-10 18:48:57 | carljm | link | issue21145 messages |
| 2016-11-10 18:48:57 | carljm | create | |
|