Re: Observer implementation question ('Patterns in Python')

2007-10-13 Thread Anders Dahnielson
Thank you, James and Stargaming, for your replies! -- http://mail.python.org/mailman/listinfo/python-list

Re: Observer implementation question ('Patterns in Python')

2007-10-12 Thread Stargaming
On Fri, 12 Oct 2007 16:55:05 -0700, James Stroud wrote: [snip] > The use of __iadd__ & __isub__ as described in the article allows a neat > shorthand, but does not function correctly in the context of new style > classes. > > James But still, this call on a descriptor:: obj.descr += val is

Re: Observer implementation question ('Patterns in Python')

2007-10-12 Thread James Stroud
Anders Dahnielson wrote: > Sorry if this is a somewhat silly question... > > I'm using the Observer implementation found in 'Patterns in > Python' [1] and find it really neat. But, I have not yet fully groked > the new-style class, classic class and property differences involved. > So can somebody

Observer implementation question ('Patterns in Python')

2007-10-12 Thread Anders Dahnielson
Sorry if this is a somewhat silly question... I'm using the Observer implementation found in 'Patterns in Python' [1] and find it really neat. But, I have not yet fully groked the new-style class, classic class and property differences involved. So can somebody please explain to me why this works