4.2.1. AstBuilder¶
-
class
AstBuilder
(*args, *, dsp=None, nodes=None, match=None, **kwargs)¶ Methods
__init__
append
appendleft
Add an element to the left side of the deque. clear
Remove all elements from the deque. compile
copy
Return a shallow copy of a deque. count
extend
Extend the right side of the deque with elements from the iterable extendleft
Extend the left side of the deque with elements from the iterable finish
get_node_id
index
Raises ValueError if the value is not present. insert
D.insert(index, object) – insert object before index pop
Remove and return the rightmost element. popleft
Remove and return the leftmost element. remove
D.remove(value) – remove first occurrence of value. reverse
D.reverse() – reverse IN PLACE rotate
Rotate the deque n steps to the right (default n=1). -
__init__
(*args, *, dsp=None, nodes=None, match=None, **kwargs)¶
Attributes
maxlen
maximum size of a deque or None if unbounded -