From 579e54be3f136a0635e8cb7742ab911c01662dd8 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 25 Oct 2024 14:39:18 +0100 Subject: [PATCH] Link to functools.cached_property Make readers aware of the standard library alternative. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index cc2b5b2..efa1229 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ A decorator for caching properties in classes. * Makes caching of time or computational expensive properties quick and easy. * Because I got tired of copy/pasting this code from non-web project to non-web project. * I needed something really simple that worked in Python 2 and 3. + (Python 3.8 added a version of this decorator as [`@functools.cached_property`](https://docs.python.org/3.12/library/functools.html#functools.cached_property).) ## How to use it