Collection Interface ABCs

collections.abc.MutableSequence

Sequence extended by indexed assignment, deletion and insert, supplying further mutation mixins.

Formal Syntax & Structure

python syntaxpython
collections.abc.MutableSequence

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.MutableSequence))
Python Reference