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

Method update

recipes/Python/131499_Observer_Pattern/recipe-131499.py:37–38  ·  view source on GitHub ↗
(self, subject)

Source from the content-addressed store, hash-verified

35
36class HexViewer:
37 def update(self, subject):
38 print 'HexViewer: Subject %s has data 0x%x' % (subject.name, subject.getData())
39
40
41class DecimalViewer:

Callers 1

notifyMethod · 0.45

Calls 1

getDataMethod · 0.45

Tested by

no test coverage detected