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

Method attach

recipes/Python/131499_Observer_Pattern/recipe-131499.py:5–7  ·  view source on GitHub ↗
(self, observer)

Source from the content-addressed store, hash-verified

3 self._observers = []
4
5 def attach(self, observer):
6 if not observer in self._observers:
7 self._observers.append(observer)
8
9 def detach(self, observer):
10 try:

Callers 1

mainFunction · 0.45

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected