Ferenczi Viktor wrote:
> Properties are very useful, since ordinary attribute access can be > transparently replaced with properties if the developer needs to add code > when it's set or needs to calculate it's value whenever it is read. > > As an additional benefit this could allow developers to implement change > events for properties that allows any number of observers to monitor > property changes. This could be very useful in GUI programming, for > example. You might be interested in Traits: http://code.enthought.com/traits/ Beautiful technology, precisely for the use cases you list, amongst many others. cheers, f -- http://mail.python.org/mailman/listinfo/python-list