Skip Montanaro wrote:
counter = Queue.Queue() def f(): i = counter.get()
I think you need: i = counter.get(True)
The default value for the "block" argument to Queue.get is True. -- http://mail.python.org/mailman/listinfo/python-list
Skip Montanaro wrote:
counter = Queue.Queue() def f(): i = counter.get()
I think you need: i = counter.get(True)
The default value for the "block" argument to Queue.get is True. -- http://mail.python.org/mailman/listinfo/python-list