From e177b6d64e02a1f9ef2ab29e52b2cc4c9e119390 Mon Sep 17 00:00:00 2001 From: Daniel Greenfeld Date: Sat, 17 May 2014 16:19:36 -0700 Subject: [PATCH] Update the readme --- README.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 4bf44bc..121a9fa 100644 --- a/README.rst +++ b/README.rst @@ -73,7 +73,7 @@ Let's convert the boardwalk property into a `cached_property`. self.boardwalk_price += 50 return self.boardwalk_price -Now when we run it the price stays at $550. Why? because it's cached!: +Now when we run it the price stays at $550. .. code-block:: python @@ -85,8 +85,10 @@ Now when we run it the price stays at $550. Why? because it's cached!: >>> m.boardwalk 550 +Why doesn't the value of `m.boardwalk` change? Because it's a **cached property**!: + Credits -------- * Django, Werkzueg, Bottle, and Zope for having their own implementations. This package uses the Django version. -* Reinout Van Rees for pointing out the cached_property decorator to me. +* Reinout Van Rees for pointing out the cached_property decorator to me. \ No newline at end of file -- 2.30.2