STINNER Victor added the comment:

> I am guessing `0.1` is too low because we have wrong condition in Queue.get. 
> It should be.

I'm not sure that the buildbot took this code path, but I like your suggestion. 
Checking the reader in non-blocking mode is cheap.

poll() with timeout < 0 works as poll(0), I checked the UNIX and Windows 
implementations.

So I proposed your change as a PR, and credited you ;-)
https://github.com/python/cpython/pull/2027

----------

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

Reply via email to