【发布时间】:2017-02-02 11:52:50
【问题描述】:
我试图从multiprocessing 继承Event,但它不起作用,有人知道为什么吗?
from multiprocessing import Event
class MyEvent(Event):
def __init__(self):
self.__init__()
我收到以下错误消息:
TypeError: Error when calling the metaclass bases
function() argument 1 must be code, not str
【问题讨论】:
标签: python python-2.7 python-multiprocessing