Thank you, James and Stargaming, for your replies!
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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