collections.abc.Container

class collections.abc.Container 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__().

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__().

collections.abc.AsyncIterable

class collections.abc.AsyncIterable ABC for classes that provide __aiter__ method. See also the definition of asynchronous iterable. New in version 3.5.

collections.abc.Callable

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

collections.abc.ByteString

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 list), the mixins will have quadratic performance and will likely nee

collections.abc.Awaitable

class collections.abc.Awaitable ABC for awaitable objects, which can be used in await expressions. Custom implementations must provide the __await__() method. Coroutine objects and instances of the Coroutine ABC are all instances of this ABC. Note In CPython, generator-based coroutines (generators decorated with types.coroutine() or asyncio.coroutine()) are awaitables, even though they do not have an __await__() method. Using isinstance(gencoro, Awaitable) for them will return False. Use in

collections.abc.AsyncIterator

class collections.abc.AsyncIterator ABC for classes that provide __aiter__ and __anext__ methods. See also the definition of asynchronous iterator. New in version 3.5.

codecs.xmlcharrefreplace_errors()

codecs.xmlcharrefreplace_errors(exception) Implements the 'xmlcharrefreplace' error handling (for encoding with text encodings only): the unencodable character is replaced by an appropriate XML character reference.

codeop.Compile

class codeop.Compile Instances of this class have __call__() methods identical in signature to the built-in function compile(), but with the difference that if the instance compiles program text containing a __future__ statement, the instance ‘remembers’ and compiles all subsequent program texts with the statement in force.

codeop.compile_command()

codeop.compile_command(source, filename="", symbol="single") Tries to compile source, which should be a string of Python code and return a code object if source is valid Python code. In that case, the filename attribute of the code object will be filename, which defaults to '<input>'. Returns None if source is not valid Python code, but is a prefix of valid Python code. If there is a problem with source, an exception will be raised. SyntaxError is raised if there is invalid Python synt