Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/t/r/troy-0.0.3/troy/bin/nestor_skeleton.py   troy(Download)
 
            # wait for workload to reach a final state
            while workload.state not in [troy.DONE, troy.FAILED]:
                troy._logger.info ("whats up, buddy? (workload state: %s)" % workload.state)
                time.sleep(1)
            overlay_mgr .cancel_overlay  (overlay_id)
 
            if  workload.state != troy.DONE :
                troy._logger.info  ("workload failed!")
                raise RuntimeError ("workload failed!")

src/t/r/troy-0.0.3/troy/workload/workload.py   troy(Download)
    def wait (self) :
 
        while self.state not in [troy.DONE, troy.FAILED, troy.CANCELED]:
            troy._logger.info ("waiting for workload (state: %s)" % self.state)
            time.sleep(1)

src/t/r/troy-0.0.3/troy/plugins/strategy/plugin_strategy_basic_early_binding.py   troy(Download)
                workload.state = partition.state
 
                if partition.state == troy.DONE :
                    troy._logger.info  ("partition %s done" % partition.id)
                else :
                workload.state = partition.state
 
                if partition.state == troy.DONE :
                    troy._logger.info  ("partition done")
                else :

src/t/r/troy-0.0.3/troy/plugins/strategy/plugin_strategy_basic_late_binding.py   troy(Download)
                workload.state = partition.state
 
                if partition.state == troy.DONE :
                    troy._logger.info  ("partition %s done" % partition.id)
                else :