MutableBuffer

class MutableBuffer

Description

A mutable view into a native random-access container. Implements MutableSequence protocol.

Inheritance:

Members defined in MutableBuffer (8 members)

__delitem__

Remove an item at the specified index.

__setitem__

append

Append an item to the end.

clear

Clear all contents.

extend

Append items to the end.

insert

Insert a new item at the specified index.

pop

Remove and return existing item at specified index.

remove

Remove an item at the specified index.

Members inherited from BufferView (11 members)

__bool__

Whether this container is not empty

__contains__

__getitem__

__iter__

__len__

__reversed__

__str__

at

Get the value at index.

count

Returns the number of value occurrences in this container

empty

Whether this container is empty

index

Returns the index of value in this container.

Methods

__delitem__(arg: int, /) → None

Remove an item at the specified index.

Warning

May invalidate existing references to contained items.

__delitem__(arg: slice, /) → None

Remove items at the specified slice indices.

Warning

May invalidate existing references to contained items.

__setitem__(arg0: int, arg1: syside.T, /) → None
__setitem__(arg0: slice, arg1: Iterable[syside.T], /) → None
append(arg: syside.T, /) → None

Append an item to the end.

Warning

May invalidate existing references to contained items.

clear() → None

Clear all contents.

Warning

Invalidates all existing references to contained items.

extend(arg: Iterable[syside.T], /) → None

Append items to the end.

Warning

May invalidate existing references to contained items.

insert(arg0: int, arg1: syside.T, /) → None

Insert a new item at the specified index.

Warning

May invalidate existing references to contained items.

pop(arg: int = -1) → syside.T

Remove and return existing item at specified index.

Warning

May invalidate existing references to contained items.

remove(arg: syside.T, /) → None

Remove an item at the specified index.

Warning

May invalidate existing references to contained items.

Used by