Stefan Krah added the comment: I guess that in the test case the stop parameter is set to 4 in deque_index(), but it should be clamped to 3. ---------- nosy: +skrah _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue24913> _______________________________________