Collection Interface ABCs

collections.abc.Sized

Objects implementing __len__, usable with len.

Formal Syntax & Structure

python syntaxpython
collections.abc.Sized

Return 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))
Python Reference