New submission from Andre Dias :
Olá,
Eu acabei de assinar o abaixo-assinado "ABC: We ask U.S. news media to
interview Human Rights expert Alfred de Zayas about Venezuela." e queria
saber se você pode ajudar assinando também.
A nossa meta é conseguir 1.000 assinaturas e precisam
Andre Dias added the comment:
RIchard,
But the example program has no races, no threads, nothing.
empty() is returning TRUE even though qsize() is >0 (which actually is)
And it happens almost every time I run that small example.
I had read the module doc, and I know its an unreliable met
Andre Dias added the comment:
But qsize() is working. what is not working is empty()
2013/5/15 Richard Oudkerk
>
> Richard Oudkerk added the comment:
>
> >From the docs:
>
> qsize()
> Return the approximate size of the queue. Because of
> multithreadin
New submission from Andre Dias:
The problem is that Queue.empty() is True even if Queue.qsize()>0!
#!/usr/bin/python
from multiprocessing import Queue
numbers=Queue()
for i in range (0,10):
numbers.put(i)
if numbers.qsize()>0 and numbers.empty():
print "BUG?!"
-