Differences between revisions 1 and 2
Revision 1 as of 2005-05-05 01:24:52
Size: 546
Editor: G9389
Comment:
Revision 2 as of 2008-11-15 14:01:19
Size: 548
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
Common incarnations of the Observer Pattern use events to notify observers about changes in the subject. A python solution that encapsulates event triggering and subscription and mimics C#-style events can be found [http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/410686 here]. Common incarnations of the Observer Pattern use events to notify observers about changes in the subject. A python solution that encapsulates event triggering and subscription and mimics C#-style events can be found [[http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/410686|here]].

Observer Pattern

Intent: Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.

Described in ObserverPattern.

Common incarnations of the Observer Pattern use events to notify observers about changes in the subject. A python solution that encapsulates event triggering and subscription and mimics C#-style events can be found here.

Discussion

ObserverPattern (last edited 2008-11-15 14:01:19 by localhost)

Unable to edit the page? See the FrontPage for instructions.