This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients Omer.Katz, eric.araujo, madison.may, rhettinger, vstinner
Date 2014-04-04.21:11:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396645885.63.0.378117225518.issue21145@psf.upfronthosting.co.za>
In-reply-to
Content
It could make sense to add clean, working recipes to e.g. the functools documentation.  The cached_property in the wiki uses a TTL, other like Pyramid’s reify decorator make properties that ensure the fget function is called only once per instance, and there may be subtly different variants out there.  I don’t know if there’s a universally useful variant that should be added to the sdlib right now.  (I don’t think a C implementation is needed.)

On a related note, the Python docs about desciptors may be missing entry-level explanations, as described here: http://me.veekun.com/blog/2012/05/23/python-faq-descriptors/
History
Date User Action Args
2014-04-04 21:11:25eric.araujosetrecipients: + eric.araujo, rhettinger, vstinner, madison.may, Omer.Katz
2014-04-04 21:11:25eric.araujosetmessageid: <1396645885.63.0.378117225518.issue21145@psf.upfronthosting.co.za>
2014-04-04 21:11:25eric.araujolinkissue21145 messages
2014-04-04 21:11:25eric.araujocreate