Is there a collection which raises exception when exceeding its max size property?
I know it happens in the Queue.Queue object but it did not raise exception when I used collections.deque, but instead the last element got overridden.
Thanks in advance!
You can use a
Queuewhich raisesqueue.Fullif full: