[IPython-dev] App's, Components and refactoring

Darren Dale dsdale24@gmail....
Wed Jul 29 17:28:46 CDT 2009


On Wed, Jul 29, 2009 at 5:10 PM, Brian Granger<ellisonbg.net@gmail.com> wrote:
>
>> I meant that a decorator could be used to provide dynamic
>> notifications. The decorator might return a callable class that calls
>> the original method, and then the callable class iterates through the
>> list of callables that were registered with it using
>> component.add_notification().
>
> Ahh, yes this would work well for methods.  But obviously wouldn't work with
> attributes.

Hence my suggestion to use properties instead of attributes.


More information about the IPython-dev mailing list