collections

Source code: collections.seq

class collections.deque[T]

Properties:

maxlen

Magic methods:

__init__(arr: Array[T], head: int, tail: int, maxlen: int)
__init__()
__init__(maxlen: int)
__init__(it: Generator[T])
__bool__()
__len__()
__iter__()
__contains__(x: T)
__copy__()
__str__()

Methods:

appendleft(x: T)
append(x: T)
popleft()
pop()
clear()
copy()
collections.namedtuple()