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.ReversibleReturn 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))