multiprocessing global variable updates not returned to parent

后端 未结 5 507
天命终不由人
天命终不由人 2020-11-22 10:44

I am trying to return values from subprocesses but these values are unfortunately unpicklable. So I used global variables in threads module with success but have not been ab

5条回答
  •  执念已碎
    2020-11-22 11:24

    When using multiprocess, the only way to pass objects between processes is to use Queue or Pipe; globals are not shared. Objects must be pickleable, so multiprocess won't help you here.

提交回复
热议问题