Skip to content

Commit

Permalink
Merge pull request #355 from adamchainz/patch-1
Browse files Browse the repository at this point in the history
Link to functools.cached_property
  • Loading branch information
pydanny authored Oct 25, 2024
2 parents 2564e5e + 579e54b commit 8cf960d
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 8cf960d

Please sign in to comment.