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

Method notify

recipes/Python/131499_Observer_Pattern/recipe-131499.py:15–18  ·  view source on GitHub ↗
(self, modifier=None)

Source from the content-addressed store, hash-verified

13 pass
14
15 def notify(self, modifier=None):
16 for observer in self._observers:
17 if modifier != observer:
18 observer.update(self)
19
20
21# Example usage

Callers 1

setDataMethod · 0.45

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected