class jinja2.sandbox.MutableSequence[source]

All the operations on a read-only sequence.

Concrete subclasses must provide __new__ or __init__, __getitem__, __setitem__, __delitem__, __len__, and insert().


append(value) S.append(object) – append object to the end of the sequence
extend(values) S.extend(iterable) – extend sequence by appending elements from the iterable
index(...) Raises ValueError if the value is not present.
insert(index, value) S.insert(index, object) – insert object before index
pop(...) Raise IndexError if list is empty or index is out of range.
remove(value) S.remove(value) – remove first occurrence of value.
reverse() S.reverse() – reverse IN PLACE