Raymond Hettinger added the comment: Serhiy, it is intentional that a new block is created. Also, note the deque implementation uses freelisting (block reuse) so getting a "new block" is very cheap. Please leave this design unchanged -- it makes it very easy to reason about the deques work and how they perform. It also contributes to the invariants being understandable.
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16398> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com