var or inout parm?

sturlamolden sturlamolden at yahoo.no
Sat Dec 13 15:33:28 EST 2008


On 13 Des, 21:26, sturlamolden <sturlamol... at yahoo.no> wrote:

> Python methods always have a return value, even those that seem to do
> not - they silently return None. Thus, __iadd__ must return self to
> avoid rebinding to None.

Except for immutable types, for which __iadd__ must return a new
instance.







More information about the Python-list mailing list