Biskit :: Dock :: FixedList :: FixedList :: Class FixedList
[hide private]
[frames] | no frames]

Class FixedList

source code


List that blocks any modifications. Implementing lists must override fixed() to allow adding of items under some circumstances (like during creation of the list).

Instance Methods [hide private]
true fixed(self)
Returns if list is fixed and modifications are prohibited
  __stop(self)
  __setitem__(self, i, v)
x[i]=y
  __setslice__(self, i, j, v)
x[i:j]=y
  __add__(self, lst)
x+y
  __iadd__(self, lst)
x+=y
  extend(self, lst)
extend list by appending elements from the iterable
  append(self, v)
append object to end
  __delitem__(self, i)
del x[y]

Inherited from list: __contains__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __hash__, __imul__, __init__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, count, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

fixed(self)

source code 
Returns: true
if list is fixed and modifications are prohibited

__stop(self)

source code 
Raises:

__setitem__(self, i, v)
(Index assignment operator)

source code 

x[i]=y
Overrides: list.__setitem__
(inherited documentation)

__setslice__(self, i, j, v)
(Slice assignment operator)

source code 

x[i:j]=y

Use of negative indices is not supported.
Overrides: list.__setslice__
(inherited documentation)

__add__(self, lst)
(Addition operator)

source code 

x+y
Overrides: list.__add__
(inherited documentation)

__iadd__(self, lst)

source code 

x+=y
Overrides: list.__iadd__
(inherited documentation)

extend(self, lst)

source code 

extend list by appending elements from the iterable
Overrides: list.extend
(inherited documentation)

append(self, v)

source code 

append object to end
Overrides: list.append
(inherited documentation)

__delitem__(self, i)
(Index deletion operator)

source code 

del x[y]
Overrides: list.__delitem__
(inherited documentation)