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

Method update

recipes/Python/578484_Observer_Pattern/recipe-578484.py:44–45  ·  view source on GitHub ↗
(self, subject, attrname, value)

Source from the content-addressed store, hash-verified

42
43class Observer1:
44 def update(self, subject, attrname, value):
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):

Callers 7

__call__Method · 0.45
notifyMethod · 0.45
__call__Method · 0.45
copyFunction · 0.45
__init__Method · 0.45
exportMethod · 0.45
recipe-578479.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected