Detect when a class member is updated

Bengt Richter bokr at
Thu Jan 16 02:23:22 CET 2003

On Wed, 15 Jan 2003 16:49:48 -0500, "Mike C. Fletcher" <mcfletch at> wrote:

>Properties are, IMO, the great unsung feature of 2.2.x that should have 
>_everyone_ move to it (the feature that everyone sings about, the 
>type-class unification, is undeniably wonderful too, but everyone 
>already sings about that).  Subclassed properties give you amazing power 
>in automating data-driven Python applications.  They can:
>    * interact with watchers, (update databases or GUIs on set/del, for
>      example)
>    * check data-types,
>    * perform automatic value coercian (ingoing and outgoing),
>    * linearise their own definitions (i.e. they can write themselves
>      out to disk and be reloaded later to facilitate run-time-composed
>      data-types (classes)),
>    * provide attribute documentation (and other attributes/properties)
>      to automate presentation,
>    * automate object initialisers,
>    * and provide default values/functions.
>(Among other uses).
If you look at Delphi, you might wonder when events will become
elements in the Python language too ;-)

(Which BTW, IMO is worth putting off long enough to get right ;-)

Bengt Richter

More information about the Python-list mailing list