CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 23:27:00 GMT
server: Apache/2.4.41 (Ubuntu)
vary: Cookie,User-Agent,Accept-Encoding
set-cookie: MOIN_SESSION_443_ROOT_moin=e37894452ad5948868833c99e8b2c6246f9078b2; Expires=Sat, 26-Jul-2025 00:27:00 GMT; Max-Age=3600; Secure; Path=/
content-encoding: gzip
content-type: text/html; charset=utf-8
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=315360000; includeSubDomains; preload
ObserverPattern - Python Wiki
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.