[issue17925] asynchat.async_chat.initiate_send : del deque[0] is not safe
Andrew Stormont
report at bugs.python.org
Wed May 29 15:01:09 CEST 2013
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 <report at bugs.python.org>
<http://bugs.python.org/issue17925>
_______________________________________
More information about the Python-bugs-list
mailing list