Postfix/Prefix Operators (++,--)
peter at engcorp.com
Sat Jun 7 16:58:04 CEST 2003
John Roth wrote:
> But setattr() is used in expressions! However, I agree with you in
> general, setattr() is an exceptional case.
Not around here it ain't! :-) Okay, it's a function, but it
is really a subroutine that doesn't return a value, right?
Except for the fact that subroutines *always* return something
in Python, even if it's just None?
But in any case, I think attributes on objects are a special
case, as the object (the class, I suppose) is more in control
of when they are rebound, in general.
More information about the Python-list