Collection Interface ABCs
collections.abc.Sized
Objects implementing __len__, usable with len.
Formal Syntax & Structure
python syntaxpython
collections.abc.SizedReturn Value
type
Abstract base class object representing the described interface; use it for recognition or inheritance.
Working Example
Example Snippetpython
import collections.abcprint(isinstance("abc",collections.abc.Sized))