Any syntactic cleanup likely for Py3? And what about doc standards?

Fernando Perez fperez.net at gmail.com
Sun Sep 9 17:26:36 EDT 2007


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




More information about the Python-list mailing list