Collection Interface ABCs

collections.abc.Reversible

Iterable objects with __reversed__. The reversed built-in also supports some sequences that do not implement that hook.

Formal Syntax & Structure

python syntaxpython
collections.abc.Reversible

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([1,2],collections.abc.Reversible))
Python Reference