var or inout parm?

sturlamolden sturlamolden at
Fri Dec 12 16:56:58 CET 2008

On Dec 12, 4:55 pm, sturlamolden <sturlamol... at> 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