Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
36
class
HexViewer:
37
def
update(self, subject):
38
print
'HexViewer: Subject %s has data 0x%x'
% (subject.name, subject.getData())
39
40
41
class
DecimalViewer:
Callers
1
notify
Method · 0.45
Calls
1
getData
Method · 0.45
Tested by
no test coverage detected