collections.abc.Sequence

class collections.abc.Sequence class collections.abc.MutableSequence class collections.abc.ByteString ABCs for read-only and mutable sequences. Implementation note: Some of the mixin methods, such as __iter__(), __reversed__() and index(), make repeated calls to the underlying __getitem__() method. Consequently, if __getitem__() is implemented with constant access speed, the mixin methods will have linear performance; however, if the underlying method is linear (as it would be with a linked l

collections.abc.Iterator

class collections.abc.Iterator ABC for classes that provide the __iter__() and __next__() methods. See also the definition of iterator.

collections.abc.Mapping

class collections.abc.Mapping class collections.abc.MutableMapping ABCs for read-only and mutable mappings.

collections.abc.Iterable

class collections.abc.Iterable ABC for classes that provide the __iter__() method. See also the definition of iterable.

collections.abc.MappingView

class collections.abc.MappingView class collections.abc.ItemsView class collections.abc.KeysView class collections.abc.ValuesView ABCs for mapping, items, keys, and values views.

collections.abc.KeysView

class collections.abc.KeysView class collections.abc.ValuesView ABCs for mapping, items, keys, and values views.

collections.abc.MutableMapping

class collections.abc.MutableMapping ABCs for read-only and mutable mappings.

collections.abc.Generator

class collections.abc.Generator ABC for generator classes that implement the protocol defined in PEP 342 that extends iterators with the send(), throw() and close() methods. See also the definition of generator. New in version 3.5.

collections.abc.Coroutine

class collections.abc.Coroutine ABC for coroutine compatible classes. These implement the following methods, defined in Coroutine Objects: send(), throw(), and close(). Custom implementations must also implement __await__(). All Coroutine instances are also instances of Awaitable. See also the definition of coroutine. Note In CPython, generator-based coroutines (generators decorated with types.coroutine() or asyncio.coroutine()) are awaitables, even though they do not have an __await__() me

collections.abc.Hashable

class collections.abc.Hashable class collections.abc.Sized class collections.abc.Callable ABCs for classes that provide respectively the methods __contains__(), __hash__(), __len__(), and __call__().