_abcoll :: MutableSequence :: Class MutableSequence
[hide private]
[frames] | no frames]

Class MutableSequence

object --+        
     Sized --+    
object --+   |    
         |   |    
  Iterable --+    
object --+   |    
         |   |    
 Container --+    
      Sequence --+

All the operations on a read-only sequence.

Concrete subclasses must provide __new__ or __init__, __getitem__, __setitem__, __delitem__, __len__, and insert().

Nested Classes [hide private]
    Inherited from Sized
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods [hide private]
__delitem__(self, index)
__iadd__(self, values)
__setitem__(self, index, value)
append(S, object)
append object to the end of the sequence
extend(S, iterable)
extend sequence by appending elements from the iterable
insert(S, index, object)
insert object before index
pop(S, index=...)
remove and return item at index (default last).
remove(S, value)
remove first occurrence of value.
reverse *IN PLACE*
    Inherited from Sequence
__contains__(self, value)
__getitem__(self, index)
count(S, value)
return number of occurrences of value
index(S, value)
return first index of value.
    Inherited from Sized
    Inherited from object
x.__delattr__('name') <==> del x.name
default object formatter
x.__getattribute__('name') <==> x.name
x.__init__(...) initializes x; see help(type(x)) for signature
a new object with type S, a subtype of T
__new__(T, S, ...)
helper for pickle
helper for pickle
x.__setattr__('name', value) <==> x.name = value
size of object in memory, in bytes
Class Methods [hide private]
    Inherited from Sized
__subclasshook__(cls, C)
Abstract classes can override this to customize issubclass().
Class Variables [hide private]
  __abstractmethods__ = frozenset(['__delitem__', '__getitem__',...
  _abc_registry = <_weakrefset.WeakSet object at 0x7fab929a5350>
    Inherited from Sequence
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x7fab908...
  _abc_negative_cache_version = 19
    Inherited from Sized
  _abc_cache = <_weakrefset.WeakSet object at 0x7fab92a3df90>
Properties [hide private]
    Inherited from object
the object's class
Method Details [hide private]

pop(S, index=...)


remove and return item at index (default last). Raise IndexError if list is empty or index is out of range.

Returns: item

remove(S, value)


remove first occurrence of value. Raise ValueError if the value is not present.

Class Variable Details [hide private]