pydistsim.network.node.BlockableQueue

class BlockableQueue[source]

Bases: list[T]

Methods

__init__

add_block

append

Append object to the end of the list.

clear

Remove all items from list.

copy

Return a shallow copy of the list.

count

Return number of occurrences of value.

extend

Extend list by appending elements from the iterable.

index

Return first index of value.

insert

Insert object before index.

pop

Remove and return item at index (default last).

remove

Remove first occurrence of value.

remove_filter

reverse

Reverse IN PLACE.

sort

Sort the list in ascending order and return None.

pop()[source]

Remove and return item at index (default last).

Raises IndexError if list is empty or index is out of range.