Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ rerun `append_output.sh` (eg. ./append_output.sh borg.py) to keep the output
comments at the bottom up to date.

Current Patterns:
HEAD
### hi
=======
gj

| Pattern | Description |
|:-------:| ----------- |
Expand Down
6 changes: 1 addition & 5 deletions abstract_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_factory():

# Show pets with various factories
if __name__ == "__main__":
for i in range(3):
for i in range(2):
shop = PetShop(get_factory())
shop.show_pet()
print("=" * 20)
Expand All @@ -82,10 +82,6 @@ def get_factory():
# It says woof
# We also have dog food
# ====================
# We have a lovely Dog
# It says woof
# We also have dog food
# ====================
# We have a lovely Cat
# It says meow
# We also have cat food
Expand Down
2 changes: 1 addition & 1 deletion chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

"""http://www.testingperspective.com/wiki/doku.php/collaboration/chetan/designpatternsinpython/chain-of-responsibilitypattern"""

###
class Handler:
def __init__(self,successor):
self._successor = successor;
Expand Down