Author carljm
Recipients Omer.Katz, alex, carljm, eric.araujo, madison.may, pitrou, pydanny, r.david.murray, rhettinger, serhiy.storchaka, vstinner
Date 2016-11-10.18:48:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478803737.58.0.193843867248.issue21145@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-11-10 18:48:57carljmsetrecipients: + carljm, rhettinger, pitrou, vstinner, pydanny, eric.araujo, alex, r.david.murray, serhiy.storchaka, madison.may, Omer.Katz
2016-11-10 18:48:57carljmsetmessageid: <1478803737.58.0.193843867248.issue21145@psf.upfronthosting.co.za>
2016-11-10 18:48:57carljmlinkissue21145 messages
2016-11-10 18:48:57carljmcreate