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

Class Sequence

object --+    
         |    
     Sized --+
             |
object --+   |
         |   |
  Iterable --+
             |
object --+   |
         |   |
 Container --+
             |
            Sequence
Known Subclasses:

All the operations on a read-only sequence.

Concrete subclasses must override __new__ or __init__, __getitem__, and __len__.

Nested Classes [hide private]
    Inherited from Sized
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods [hide private]
 
__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(['__getitem__', '__len__'])
  _abc_negative_cache = <_weakrefset.WeakSet object at 0x7f8fd17...
  _abc_negative_cache_version = 19
  _abc_registry = <_weakrefset.WeakSet object at 0x7f8fd3d722d0>
    Inherited from Sized
  _abc_cache = <_weakrefset.WeakSet object at 0x7f8fd3e0af90>
Properties [hide private]
    Inherited from object
  __class__
the object's class
Method Details [hide private]

__contains__(self, value)
(In operator)

 
Overrides: Container.__contains__

__iter__(self)

 
Overrides: Iterable.__iter__

index(S, value)

 

return first index of value. Raises ValueError if the value is not present.

Returns: integer

Class Variable Details [hide private]

_abc_negative_cache

Value:
<_weakrefset.WeakSet object at 0x7f8fd17ca810>