From: Daniel Greenfeld Date: Tue, 20 May 2014 16:12:18 +0000 (-0700) Subject: Update README.rst X-Git-Tag: 1.0.0~13 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73f5fdea2ed937aa132a47bfe14645a39b3bfb2b;p=cached-property.git Update README.rst --- diff --git a/README.rst b/README.rst index 78c6691..0d7d12e 100644 --- a/README.rst +++ b/README.rst @@ -113,7 +113,7 @@ What if a whole bunch of people want to stay at Boardwalk all at once? This mean import threading - from cached_property import cached_property + from cached_property import threaded_cached_property class Monopoly(object): @@ -133,6 +133,8 @@ What if a whole bunch of people want to stay at Boardwalk all at once? This mean self.boardwalk_price += 50 return self.boardwalk_price +Now use it: + .. code-block:: python >>> from threading import Thread @@ -158,4 +160,4 @@ Credits * My awesome wife `@audreyr`_ who created `cookiecutter`_, which meant rolling this out took me just 15 minutes. .. _`@audreyr`: https://github.com/audreyr -.. _`cookiecutter`: https://github.com/audreyr/cookiecutter \ No newline at end of file +.. _`cookiecutter`: https://github.com/audreyr/cookiecutter