| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/Problematic/python-patterns/master/chain.py | [Back] [Original] |
# http://www.testingperspective.com/wiki/doku.php/collaboration/chetan/designpatternsinpython/chain-of-responsibilitypattern
class Handler:
def successor(self, successor):
self.successor = successor
class ConcreteHandler1(Handler):
def handle(self, request):
if request > 0 and request 10 and request 20 and request
| Web Proxy Viewer | New URL | Original Page |