CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 16 Jul 2025 23:35:22 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100422194408
location: https://web.archive.org/web/20100422194408/https://wiki.python.org/moin/ObserverPattern
server-timing: captures_list;dur=1.098765, exclusion.robots;dur=0.031579, exclusion.robots.policy;dur=0.013819, esindex;dur=0.017509, cdx.remote;dur=18.321939, LoadShardBlock;dur=210.696781, PetaboxLoader3.datanode;dur=41.618256, PetaboxLoader3.resolve;dur=160.827080
x-app-server: wwwb-app220
x-ts: 302
x-tr: 287
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app220; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Wed, 16 Jul 2025 23:35:23 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Thu, 22 Apr 2010 19:44:08 GMT
x-archive-orig-server: Apache/2.2.9 (Debian) mod_fastcgi/2.4.6 mod_python/3.3.1 Python/2.5.2 mod_wsgi/2.5
x-archive-orig-vary: Cookie,User-Agent,Accept-Language
x-archive-orig-content-length: 7689
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 22 Apr 2010 19:44:08 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Mon, 22 May 2006 20:39:29 GMT", ; rel="prev memento"; datetime="Sat, 08 Dec 2007 11:30:59 GMT", ; rel="memento"; datetime="Thu, 22 Apr 2010 19:44:08 GMT", ; rel="next memento"; datetime="Sat, 13 Aug 2011 00:58:22 GMT", ; rel="last memento"; datetime="Mon, 24 Jun 2024 15:56:41 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_15_20100422113820_crawl102-c/51_15_20100422194311_crawl103.arc.gz
server-timing: captures_list;dur=0.643324, exclusion.robots;dur=0.024285, exclusion.robots.policy;dur=0.010861, esindex;dur=0.012999, cdx.remote;dur=8.632977, LoadShardBlock;dur=207.432391, PetaboxLoader3.datanode;dur=127.872642, PetaboxLoader3.resolve;dur=264.253158, load_resource;dur=214.497110
x-app-server: wwwb-app220
x-ts: 200
x-tr: 483
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
ObserverPattern - PythonInfo 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
EditText (last edited 2008-11-15 14:01:19 by localhost)