Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes:

> Simply not to introduce special cases I guess.  If you write ``x.a
> += b`` then `x.a` will be rebound whether an `a.__iadd__()` exists
> or not.  Otherwise one would get interesting subtle differences with
> properties for example.  If `x.a` is a property that checks if the
> value satisfies some constraints ``x.a += b`` would trigger the set
> method only if there is no `__iadd__()` involved if there's no
> rebinding.

Note that such constraint is easily invalidated simply with:

foo = x.a
foo += b
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to