Collection Interface Modules
collections.abc
Abstract interfaces for checking and implementing container, iterator, callable and buffer capabilities. Some support structural recognition; complex interfaces generally require inheritance or registration.
Formal Syntax & Structure
python syntaxpython
collections.abcReturn Value
module
Module object available through import.
Working Example
Example Snippetpython
import collections.abcprint((isinstance({},collections.abc.Mapping),isinstance([],collections.abc.Sequence)))