If you want to create an iterable of a fixed length in python, use collections.deque
with the maxlen
parameter.
|
|
Note that this merely calls appendleft
.
If you want to create an iterable of a fixed length in python, use collections.deque
with the maxlen
parameter.
|
|
Note that this merely calls appendleft
.