Ric*_*ard 4 python multiprocessing
根据python 2.7.3文档multiprocessing.Event是"克隆"的threading.Event.但是,当我使用以下代码时:
from multiprocessing import Event
test = Event()
test.set()
test.isSet()
Run Code Online (Sandbox Code Playgroud)
但是我收到此错误:
AttributeError: 'Event' Object has no attribute 'isSet'
Run Code Online (Sandbox Code Playgroud)
是什么赋予了?为什么多处理事件没有一个方法来检查它是否已设置?
编辑:结果是is_set在多处理事件类中...仍然是文档撒谎