Collection which raises exception when exceeding its max size

Viewed 280

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!

1 Answers
Related