Please note: This wiki is currently running in test mode after an attack on January 5 2013. All passwords were reset, so you will have to use the password recovery function to get a new password. To edit wiki pages, please log in first. See the wiki attack description page for more details. If you find problems, please report them to the pydotorg-www mailing list.

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)