Author aod
Recipients aod, sbt
Date 2013-05-15.21:25:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAP89Rrc-Th9JOABhd4ndPvCNz-mmGLo5qC2fie-nTwhmw5-RNA@mail.gmail.com>
In-reply-to <1368652740.56.0.406673401326.issue17985@psf.upfronthosting.co.za>
Content
But qsize() is working. what is not working is empty()

2013/5/15 Richard Oudkerk <report@bugs.python.org>

>
> Richard Oudkerk added the comment:
>
> >From the docs:
>
>  qsize()
>     Return the approximate size of the queue. Because of
>     multithreading/multiprocessing semantics, this number
>     is not reliable.
>
> Adding a short sleep before calling qsize() and empty() should make things
> appear to work.
>
> But really, there are no good reasons for using qsize() except for
> debugging.  The same applies to queue.Queue.
>
> ----------
> nosy: +sbt
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue17985>
> _______________________________________
>
History
Date User Action Args
2013-05-15 21:25:36aodsetrecipients: + aod, sbt
2013-05-15 21:25:36aodlinkissue17985 messages
2013-05-15 21:25:36aodcreate