[issue26194] Undefined behavior for deque.insert() when len(d) == maxlen

Tim Peters report at bugs.python.org
Wed Jan 27 15:18:53 EST 2016


Tim Peters added the comment:

My opinion doesn't change:  I'd rather see an exception.  I see no use case for inserting "into the middle" of a full bounded queue.  If I had one, it would remain trivial to force the specific behavior I intended.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26194>
_______________________________________


More information about the Python-bugs-list mailing list