added external design pattern documentation links to creational patterns.

This commit is contained in:
tylerlaberge
2016-08-24 21:30:54 -04:00
parent 190e562f08
commit 854966b38b
5 changed files with 16 additions and 6 deletions
+4 -2
View File
@@ -5,8 +5,9 @@ from .singleton import Singleton
class Reusable(object):
"""
An abstract reusable class.
"""
External Object Pool Pattern documentation: U{https://en.wikipedia.org/wiki/Object_pool_pattern}
"""
def __init__(self):
"""
Initialize a new Reusable instance.
@@ -24,8 +25,9 @@ class Reusable(object):
class Pool(object, metaclass=Singleton):
"""
An Object Pool design pattern implementation.
"""
External Object Pool Pattern documentation: U{https://en.wikipedia.org/wiki/Object_pool_pattern}
"""
def __init__(self, reusable_class, *args, **kwargs):
"""
Initialize a new object pool instance.