def __ror__(self, other): with self._lock: return operator.__or__(other, self.__wrapped__) # inplace operations