Tin mới
collections — Container datatypes
Python documentation for the current stable release
New in version 3.3: Formerly, this module was part of the collections module.
New in version 3.3: Formerly, this module was part of the collections module.
New in version 3.9: These abstract classes now support []. See Generic Alias Type and PEP 585.
ABC for classes that provide the __contains__() method.
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 the
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 the
abc: Abstract base classes according to :pep:`3119`.
For more about ABCs, see the abc module and PEP 3119.