According to the Python 2.7 docs, Queue.qsize
isn't dependable, and help(Queue.Queue.qsize)
says that it isn't reliable. Is there a particular implementation issue I am not aware of?
P.S. I am aware that Queue.Queue.qsize
uses mutexes, and that the size of the Queue
may change between when I call the method and when I get the result, but for single-threaded applications, are Queue
s safe?
Message from help(Queue.Queue.qsize)
:
>>> help(Queue.Queue.qsize) Help on method qsize in module Queue: qsize(self) unbound Queue.Queue method Return the approximate size of the queue (not reliable!). >>>