multimodemodel.StateDeque#
- class multimodemodel.StateDeque[source]#
Deque of State objects.
- __init__(*args, **kwargs)#
Methods
__init__(*args, **kwargs)appendAdd an element to the right side of the deque.
appendleftAdd an element to the left side of the deque.
clearRemove all elements from the deque.
copyReturn a shallow copy of a deque.
countD.count(value) -- return number of occurrences of value
extendExtend the right side of the deque with elements from the iterable
extendleftExtend the left side of the deque with elements from the iterable
indexD.index(value, [start, [stop]]) -- return first index of value.
insertD.insert(index, object) -- insert object before index
merge(others, merger)Merge StateDeques.
popRemove and return the rightmost element.
popleftRemove and return the leftmost element.
removeD.remove(value) -- remove first occurrence of value.
reverseD.reverse() -- reverse IN PLACE
rotateRotate the deque n steps to the right (default n=1).
split(splitter)Split StateDeque.
Attributes
maxlenmaximum size of a deque or None if unbounded