According to the python 2.7.3 documentation multiprocessing.Event is a “clone” of threading.Event. However when I use the following code:
from multiprocessing import Event
test = Event()
test.set()
test.isSet()
However I get this error:
AttributeError: 'Event' Object has no attribute 'isSet'
What gives? why doesn’t multiprocessing Event have a method to check if it is set?
Edit:
Turns out is_set is within multiprocessing Event class… Still the documentation lied
An instance of Event class has
is_setmethod. Try this out:Here is the documentation for
is_set