Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ HexViewer
Class
HexViewer
recipes/Python/131499_Observer_Pattern/recipe-131499.py:36–38 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
34
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
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected