MCPcopy Create free account
hub / github.com/ActiveState/code / Observer2

Class Observer2

recipes/Python/578484_Observer_Pattern/recipe-578484.py:47–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 print 'Observer1: Subject %s has updated attr %s to %s' % (subject.name, attrname, value)
46
47class Observer2:
48 def update(self, subject, attrname, value):
49 print 'Observer2: Subject %s has updated attr %s to %s' % (subject.name, attrname, value)
50
51# Example
52def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected