collections.Sequence
¶
-
class
collections.
Sequence
[source]¶ All the operations on a read-only sequence.
Concrete subclasses must override __new__ or __init__, __getitem__, and __len__.
Methods¶
__contains__ (value) |
|
__format__ |
default object formatter |
__getitem__ (index) |
|
__iter__ () |
|
__len__ () |
|
__new__ ((S, ...) |
|
__reduce__ |
helper for pickle |
__reduce_ex__ |
helper for pickle |
__reversed__ () |
|
__sizeof__ (() -> int) |
size of object in memory, in bytes |
__subclasshook__ (C) |
|
count (...) |
|
index (...) |
Raises ValueError if the value is not present. |