Xavier de Gaye added the comment: > I think you mean: > > self.producer_fifo.extendleft([data, first]) > > Instead of: > > self.producer_fifo.extendleft([first, data]) > > No?
No, I do mean: self.producer_fifo.extendleft([first, data]) See the documentation. Also: >>> from collections import deque >>> a = deque([0, 1, 2, 3]) >>> a.extendleft([11, 22]) >>> a deque([22, 11, 0, 1, 2, 3]) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17925> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com