Skip to content

Commit

Permalink
Link to functools.cached_property
Browse files Browse the repository at this point in the history
Make readers aware of the standard library alternative.
  • Loading branch information
adamchainz authored Oct 25, 2024
1 parent 2564e5e commit 579e54b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 579e54b

Please sign in to comment.