Unique Stack

class q2_sdk.models.unique_stack.UniqueStack(max_size)[source]

Behaves like a normal Python list but will only keep items once and will only fill to a certain size

property fork_requests
append(item)[source]

Append object to the end of the list.

extend(iterable)[source]

Extend list by appending elements from the iterable.

class q2_sdk.models.unique_stack.ForkedUniqueStack(max_size)[source]

Behaves like UniqueStack but will post back updates to the forked parent server if appropriate

Set UDP_MESSAGE_TYPE to an appropriate reference from q2_sdk.core.non_http_handlers.udp.writer.MsgType

UDP_MESSAGE_TYPE = None
append(item)[source]

Append object to the end of the list.

extend(iterable)[source]

Extend list by appending elements from the iterable.

remove(item)[source]

Remove first occurrence of value.

Raises ValueError if the value is not present.

insert(index, item)[source]

Insert object before index.

pop(index)[source]

Remove and return item at index (default last).

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

clear()[source]

Remove all items from list.