'python:How to tell ide this value is a 'Baseprocess' element which from dict
dic = {}
ctx = mp.get_context('spawn')
def getProcessFromDict():
for i in range(3):
p :multiprocessing.context.SpawnProcess = dic[str(i)] p.
See the pic,ide dont know what type is the value enter image description here
def setProcessIntoDict():
for i in range(3):
p = ctx.Process(target=foo,
name="{}".format(i))
p.start()
print(type(p))
dic[str(i)] = p
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
