From f61a481d2c4c4ea8d74ff5a7d7e389c40367bce9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Thu, 1 Oct 2015 15:54:20 +0300 Subject: [PATCH] Remove confusingly placed lock from example --- README.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 970b5f6..b4856c9 100644 --- a/README.rst +++ b/README.rst @@ -126,9 +126,7 @@ unfortunately causes problems with the standard ``cached_property``. In this cas dice and moving their pieces.""" sleep(1) - # Need to guard this since += isn't atomic. - with self.lock: - self.boardwalk_price += 50 + self.boardwalk_price += 50 return self.boardwalk_price Now use it: -- 2.30.2