var or inout parm?

sturlamolden sturlamolden at yahoo.no
Fri Dec 12 10:56:58 EST 2008


On Dec 12, 4:55 pm, sturlamolden <sturlamol... at yahoo.no> wrote:

> def __setitem__(self, index, value):
>    if _buf[index] is not value: # given that _buf is the tuple's
> internal buffer
>       raise TypeError, 'tuple' object does not support item
> assignment

blæh, that should be self._buf[index]







More information about the Python-list mailing list