2
Event
をmultiprocessing
からサブクラス化しようとしましたが、動作しません。なぜですか?マルチプロセッシングイベントのサブクラス化
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