This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients davin, grzgrzgrz3, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2017-06-09.13:18:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497014337.14.0.598397877448.issue30595@psf.upfronthosting.co.za>
In-reply-to
Content
> 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
History
Date User Action Args
2017-06-09 13:18:57vstinnersetrecipients: + vstinner, paul.moore, tim.golden, zach.ware, steve.dower, davin, grzgrzgrz3
2017-06-09 13:18:57vstinnersetmessageid: <1497014337.14.0.598397877448.issue30595@psf.upfronthosting.co.za>
2017-06-09 13:18:57vstinnerlinkissue30595 messages
2017-06-09 13:18:56vstinnercreate