From: Daniel Greenfeld Date: Fri, 13 Feb 2015 19:12:28 +0000 (-0800) Subject: RST cleanups X-Git-Tag: 1.1.0~5 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae24fd183ef5efd5a670a6bbe8b20505859f4d81;p=cached-property.git RST cleanups --- diff --git a/HISTORY.rst b/HISTORY.rst index 60bf2eb..cdc0f91 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -7,7 +7,7 @@ History ++++++++++++++++++ * Added timed to expire feature to ``cached_property`` decorator. -* Changed ``del monopoly.boardwalk`` to ``del monopoly['boardwalk'] in order to support the new TTL feature. +* Changed ``del monopoly.boardwalk`` to ``del monopoly['boardwalk']`` in order to support the new TTL feature. 0.1.5 (2014-05-20) ++++++++++++++++++ diff --git a/README.rst b/README.rst index bbdb552..f63ecc3 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ cached-property .. image:: https://badge.fury.io/py/cached-property.png :target: http://badge.fury.io/py/cached-property - + .. image:: https://travis-ci.org/pydanny/cached-property.png?branch=master :target: https://travis-ci.org/pydanny/cached-property @@ -110,7 +110,7 @@ Timing out the cache Sometimes you want the price of things to reset after a time. .. code-block:: python - + import random from cached_property import cached_property @@ -121,6 +121,8 @@ Sometimes you want the price of things to reset after a time. # I dare the reader to implement a game using this method of 'rolling dice'. return random.randint(2,12) +Now use it: + .. code-block:: python >>> monopoly = Monopoly()