pex.string.ring_list

Module Contents

class pex.string.ring_list.RingList(length: int)

Bases: object

Subclass of pex.string module.

This subclass of pex.string module is intended for providing RingList Python implementation.

append(x: Any) None

Append an item to the list.

Parameters:

x (Any) – item to append

Return None:

None

get() collections.deque

Get the list.

Return collections.deque:

list

size() int

Get the size of the list.

Return int:

size of the list

maxsize() int

Get the max size of the list.

Return int:

max size of the list

__getitem__(n: int) Any

Get an item from list by its index.

Parameters:

n (int) – item index

Return Any:

an item