deque

Standard library class collections.deque View source
class deque
class deque[T]
Fields 1
T type
Constructors 4
__init__
__init__(self)
Defined in collections
__init__
__init__(self, maxlen: int)
Defined in collections
__init__
__init__(self, it: Generator[T])
Defined in collections
__init__
__init__(self, other: deque[T])
Defined in collections
Properties 2
maxlen
@property
maxlen(self)
Defined in collections
left
@property
left(self)
Defined in collections
Methods 6
appendleft
appendleft(self, x: T)
Defined in collections
append
append(self, x: T)
Defined in collections
popleft
popleft(self)
Defined in collections
pop
pop(self)
Defined in collections
clear
clear(self)
Defined in collections
copy
copy(self)
Defined in collections
Special methods 8
__bool__
__bool__(self)
Defined in collections
__len__
__len__(self)
Defined in collections
__iter__
__iter__(self)
Defined in collections
__contains__
__contains__(self, x: T)
Defined in collections
__deepcopy__
__deepcopy__(self)
Defined in collections
__copy__
__copy__(self)
Defined in collections
__repr__
__repr__(self)
Defined in collections
__getitem__
__getitem__(self, idx: int)
Defined in collections