ecflow.VariableList

class ecflow.VariableList

Bases: pybind11_object

Hold a list of Variables

VariableList.append(self: ecflow.VariableList, x: Variable) None

Add an item to the end of the list

VariableList.clear(self: ecflow.VariableList) None

Clear the contents

VariableList.count(self: ecflow.VariableList, x: Variable) int

Return the number of times x appears in the list

VariableList.extend(*args, **kwargs)

Overloaded function.

  1. extend(self: ecflow.VariableList, L: ecflow.VariableList) -> None

Extend the list by appending all the items in the given list

  1. extend(self: ecflow.VariableList, L: collections.abc.Iterable) -> None

Extend the list by appending all the items in the given list

VariableList.insert(self: ecflow.VariableList, i: SupportsInt | SupportsIndex, x: Variable) None

Insert an item at a given position.

VariableList.pop(*args, **kwargs)

Overloaded function.

  1. pop(self: ecflow.VariableList) -> Variable

Remove and return the last item

  1. pop(self: ecflow.VariableList, i: typing.SupportsInt | typing.SupportsIndex) -> Variable

Remove and return the item at index i

VariableList.remove(self: ecflow.VariableList, x: Variable) None

Remove the first item from the list whose value is x. It is an error if there is no such item.