[Python-Dev] Oberver Pattern

Greg Ewing greg@cosc.canterbury.ac.nz
Mon, 13 May 2002 11:55:44 +1200 (NZST)


Raymond Hettinger <python@rcn.com>:

> I would like to know what you all think about formalizing an observer
> protocol for python objects.
> 
> Alex's smart shelves provide an immediate application -- it needs to know
> which of its cache objects have changed state.  Another application would be
> to enable computation caching in my matrix package which needs to invalidate
> the cache whenever a matrix element gets updated.

This could be very useful for GUIs, too, for implementing
model-view relationships. The anygui people would be very
interested, I'm sure.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+