From 366e3c4044941dfb5effce1199c9e2db4c7b2ffb Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Mon, 11 Nov 2019 07:28:59 +1100 Subject: [PATCH] Fix simple typo: insided -> inside --- patterns/creational/pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patterns/creational/pool.py b/patterns/creational/pool.py index 0e2f1fec..a58ff8d8 100644 --- a/patterns/creational/pool.py +++ b/patterns/creational/pool.py @@ -15,7 +15,7 @@ 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 afterwards it is reused by the explicit call to sample_queue.get(). -Same thing happens with "sam", when the ObjectPool created insided the +Same thing happens with "sam", when the ObjectPool created inside the function is deleted (by the GC) and the object is returned. *Where is the pattern used practically?