Increase CPython compatibility by using a boolean value for the state.
Compatibility also achieveable by only changing is_set() to "return self.state==1" so it returns a boolean. self.state should never be accessed directly from the outside so could stay an integer.
Increase CPython compatibility by using a boolean value for the state. Compatibility also achieveable by only changing is_set() to "return self.state==1" so it returns a boolean. self.state should never be accessed directly from the outside so could stay an integer.