diff options
Diffstat (limited to 'docs/ref/utils.txt')
| -rw-r--r-- | docs/ref/utils.txt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 843d6ab4de..485009bde6 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -493,9 +493,7 @@ https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004 expensive ``get_friends()`` method and wanted to allow calling it without retrieving the cached value, you could write:: - friends = cached_property(get_friends, name='friends') - - You only need the ``name`` argument for Python < 3.6 support. + friends = cached_property(get_friends) While ``person.get_friends()`` will recompute the friends on each call, the value of the cached property will persist until you delete it as described |
