MCPcopy Create free account
hub / github.com/MorvanZhou/tutorials / job

Function job

threadingTUT/thread4_queue.py:10–13  ·  view source on GitHub ↗
(l,q)

Source from the content-addressed store, hash-verified

8from queue import Queue
9
10def job(l,q):
11 for i in range(len(l)):
12 l[i] = l[i]**2
13 q.put(l)
14
15def multithreading():
16 q = Queue()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected