>I have below code but it is giving this error:
>AttributeError: Queue instance has no attribute 'taskdone'
>import threading
>from Queue import Queue
>def worker(q):
>while True:
> dataset = q.get()
> print("q is taken out")
> q.taskdone()
Per documentation it is task_done
On 26/11/16 09:07, anish singh wrote:
> I have below code but it is giving this error:
> AttributeError: Queue instance has no attribute 'taskdone'
Please post the full error not just a summary.
Also please post the actual code...
> import threading
> from Queue import Queue
I get an import
I was just writing to read a file using popen and wanted to use queue along
with it.
I have below code but it is giving this error:
AttributeError: Queue instance has no attribute 'taskdone'
import threading
from Queue import Queue
def worker(q):
while True:
dataset = q.get()