Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ attach
Method
attach
recipes/Python/578484_Observer_Pattern/recipe-578484.py:23–25 ·
view source on GitHub ↗
(self, observer)
Source
from the content-addressed store, hash-verified
21
self.notify(attrname, value)
22
23
def
attach(self, observer):
24
if
not observer in self._observers:
25
self._observers.append(observer)
26
27
def
detach(self, observer):
28
try
:
Callers
15
send_email
Function · 0.45
main
Function · 0.45
recipe-81612.py
File · 0.45
main
Function · 0.45
send_mail
Function · 0.45
send
Method · 0.45
mail
Function · 0.45
attach_text
Function · 0.45
attach_file
Function · 0.45
recipe-81613.py
File · 0.45
send_email
Function · 0.45
email_it_via_gmail
Function · 0.45
Calls
1
append
Method · 0.45
Tested by
no test coverage detected