这是我的代码:
import ipyparallel as ipp
c = ipp.Client()
class test:
def f(self):
return 'hello'
def run(self, client):
self.c = client
self.c[:].apply_sync(self.f)
a = test()
a.run(c)
它给了我错误:
AttributeError: Can't pickle local object 'wrap.<locals>.null_wrapper'
我不明白为什么。