Andrew Stormont added the comment: What about changing:
self.producer_fifo.appendleft(first) self.producer_fifo.appendleft(data) To self.producer_fifo.extendleft([data, first]) Assuming deque's extendleft is actually thread safe. ---------- _______________________________________ 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