Refs #30278 -- Fixed link in cached_property docs.

This commit is contained in:
Tim Graham 2019-03-30 09:35:00 -04:00
parent c3c2ec54f5
commit b9455b010e
1 changed files with 2 additions and 2 deletions

View File

@ -473,8 +473,8 @@ https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004
# set a value manually, that will persist on the instance until cleared # set a value manually, that will persist on the instance until cleared
person.friends = ["Huckleberry Finn", "Tom Sawyer"] person.friends = ["Huckleberry Finn", "Tom Sawyer"]
Because of the way the `descriptor protocol Because of the way the :py:ref:`descriptor protocol
<descriptor-invocation>`_ works, using ``del`` (or ``delattr``) on a <descriptor-invocation>` works, using ``del`` (or ``delattr``) on a
``cached_property`` that hasn't been accessed raises ``AttributeError``. ``cached_property`` that hasn't been accessed raises ``AttributeError``.
As well as offering potential performance advantages, ``@cached_property`` As well as offering potential performance advantages, ``@cached_property``