A collection of design patterns and idioms in Python.

Jonathan Reem 38637e914c Rejiggered the classes to actually use decorator syntax and commented an explanation on how the @ syntax works. Also wrapped the executing code in a main() function. 12 years ago
__pycache__ 864f73f43c Some minor changes 12 years ago
3-tier.py 6b920156b9 Added a main() function. 12 years ago
README.md 909cbb9beb Initial commit 13 years ago
abstract_factory.py 533c8680de Fixed a number of pep8 violations. 12 years ago
adapter.py 06a7f83254 Removed old string formatting. 12 years ago
borg.py 533c8680de Fixed a number of pep8 violations. 12 years ago
bridge.py d671429259 Fixed PEP-8 discrepancy in Bridge pattern 12 years ago
builder.py 3003f6bbf6 Fixed string formatting. 12 years ago
chain.py 0e0f9c57c5 Split delegation from __init__ in Client. 12 years ago
command.py 77728fd5f7 Wrapped main behavior in a main() function. 12 years ago
composite.py 533c8680de Fixed a number of pep8 violations. 12 years ago
decorator.py 38637e914c Rejiggered the classes to actually use decorator syntax and commented an explanation on how the @ syntax works. Also wrapped the executing code in a main() function. 12 years ago
facade.py 533c8680de Fixed a number of pep8 violations. 12 years ago
factory_method.py 533c8680de Fixed a number of pep8 violations. 12 years ago
flyweight.py 3656aa0f90 Removed trailing spaces on numerous lines. 12 years ago
foo.txt 3511c20bf6 Added foo.txt for command.py script. 12 years ago
graph_search.py 533c8680de Fixed a number of pep8 violations. 12 years ago
iterator.py 06960de5e3 Minor pep8 correction of the docstring. 12 years ago
mediator.py 327e51c9c3 Removed redundant parentheses. 12 years ago
memento.py 533c8680de Fixed a number of pep8 violations. 12 years ago
mvc.py 88fd2544d6 added two more patterns, 3-tier and mvc 12 years ago
null.py 533c8680de Fixed a number of pep8 violations. 12 years ago
observer.py 533c8680de Fixed a number of pep8 violations. 12 years ago
pool.py 6b3735078f Renamed element 'type' to 'Type'. 12 years ago
prototype.py a444aab205 Fixed PEP-8 discrepancy in Prototype pattern 12 years ago
proxy.py 533c8680de Fixed a number of pep8 violations. 12 years ago
state.py 916b996ff1 Few minor changes. 12 years ago
strategy.py 40a7afc427 Minor pep8 correction of the docstring. 12 years ago
template.py 4007ac7d7c Minor pep8 correction of the docstring. 12 years ago
visitor.py 533c8680de Fixed a number of pep8 violations. 12 years ago

README.md

python-patterns

A collection of design patterns implemented (by other people) in python