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

Class MutableSequence

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

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__
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
item
pop(S, index=...)
remove and return item at index (default last).
 
remove(S, value)
remove first occurrence of value.
 
reverse(S)
reverse *IN PLACE*
    Inherited from Sequence
 
__contains__(self, value)
 
__getitem__(self, index)
 
__iter__(self)
 
__reversed__(self)
integer
count(S, value)
return number of occurrences of value
integer
index(S, value)
return first index of value.
    Inherited from Sized
 
__len__(self)
    Inherited from object
 
__delattr__(...)
x.__delattr__('name') <==> del x.name
 
__format__(...)
default object formatter
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__hash__(x)
hash(x)
 
__init__(...)
x.__init__(...) initializes x; see help(type(x)) for signature
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__reduce__(...)
helper for pickle
 
__reduce_ex__(...)
helper for pickle
 
__repr__(x)
repr(x)
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
int
__sizeof__()
size of object in memory, in bytes
 
__str__(x)
str(x)
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
  __class__
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]

__abstractmethods__

Value:
frozenset(['__delitem__',
           '__getitem__',
           '__len__',
           '__setitem__',
           'insert'])