R. David Murray added the comment:

You are calling q.empty when draining the queue.  That has the same documented 
caution.  Since you are using get in that loop, in that case you *want* to be 
calling qsize, just like you do when you drain it at the end.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23582>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to