From cdb3dc18032bb3287494fd5d91fcb34f837baa4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=AE=E6=98=8A?= Date: Wed, 28 Mar 2018 20:51:24 +0800 Subject: [PATCH] Update pool.py fix spell error. --- creational/pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/creational/pool.py b/creational/pool.py index 2f35e600..a9d2e4c5 100644 --- a/creational/pool.py +++ b/creational/pool.py @@ -17,7 +17,7 @@ populated with strings. As we can see, the first string object put in "yam" is USED by the with statement. But because it is released back into the pool -aftwerwards it is reused by the explicit call to sample_queue.get(). +afterwards it is reused by the explicit call to sample_queue.get(). Same thing happens with "sam", when the ObjectPool created insided the function is deleted (by the GC) and the object is returned.