code: def release(self):
          
          with self.__cond:
              self.__value = self.__value + 1
              if __debug__:
                  self._note("%s.release: success, value=%s",
                          self, self.__value)
              self.__cond.notify()
docs: Release a semaphore, incrementing the internal counter by one.
  
          When the counter is zero on entry and another thread is waiting for it
          to become larger than zero again, wake up that thread.