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

Class DecimalViewer

recipes/Python/131499_Observer_Pattern/recipe-131499.py:41–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40
41class DecimalViewer:
42 def update(self, subject):
43 print 'DecimalViewer: Subject %s has data %d' % (subject.name, subject.getData())
44
45
46# Example usage...

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected