From: Daniel Greenfeld Date: Sat, 17 May 2014 23:19:36 +0000 (-0700) Subject: Update the readme X-Git-Tag: 0.1.1~3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e177b6d64e02a1f9ef2ab29e52b2cc4c9e119390;p=cached-property.git Update the readme --- 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