Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RefactoringGuru/design-patterns-python
/ main.py
File
main.py
src/Observer/Conceptual/main.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"
2
EN: Observer Design Pattern
3
4
Intent: Lets you define a subscription mechanism to notify multiple objects
Callers
nothing calls this directly
Calls
6
ConcreteSubject
Class · 0.85
ConcreteObserverA
Class · 0.85
ConcreteObserverB
Class · 0.85
attach
Method · 0.45
some_business_logic
Method · 0.45
detach
Method · 0.45
Tested by
no test coverage detected