[ Web Proxy ]
URL:
Viewing: https://wiki.python.org/moin/../python/platforms/../py3/../../python/language/ObserverPattern.html [Back]  [Original]

Observer Pattern - Python Wiki
Python Wiki
psf/wiki 0 0
Copy page

Observer Pattern

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

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

Back to top

Web Proxy Viewer  |  New URL  |  Original Page