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/g/r/gridmap-0.12.3/gridmap/runner.py   gridmap(Download)
# Set of "not running" job statuses
_SLEEP_STATUSES = {psutil.STATUS_SLEEPING, psutil.STATUS_DEAD,
                   psutil.STATUS_IDLE, psutil.STATUS_STOPPED,
                   psutil.STATUS_ZOMBIE}
 

src/g/r/gridmap-HEAD/gridmap/runner.py   gridmap(Download)
# Set of "not running" job statuses
_SLEEP_STATUSES = {psutil.STATUS_SLEEPING, psutil.STATUS_DEAD,
                   psutil.STATUS_IDLE, psutil.STATUS_STOPPED,
                   psutil.STATUS_ZOMBIE}
 

src/d/e/desub-1.0.3/desub/desub.py   desub(Download)
                # "STATUS_WAKING", "STATUS_LOCKED",
 
                if proc.status in (psutil.STATUS_STOPPED,
                                   psutil.STATUS_DEAD,
                                   psutil.STATUS_ZOMBIE):

src/s/h/sheep-0.3.10/sheep/shepherd.py   sheep(Download)
 
            proc = psutil.Process(pid)
            if proc.status() not in (psutil.STATUS_ZOMBIE, psutil.STATUS_DEAD, psutil.STATUS_STOPPED):
                procs.append((worker_index, pid))
            else:

src/s/h/sheep-HEAD/sheep/shepherd.py   sheep(Download)
 
            proc = psutil.Process(pid)
            if proc.status() not in (psutil.STATUS_ZOMBIE, psutil.STATUS_DEAD, psutil.STATUS_STOPPED):
                procs.append((worker_index, pid))
            else:

src/p/s/psutil-2.1.1/test/test_psutil.py   psutil(Download)
        p.suspend()
        for x in range(100):
            if p.status() == psutil.STATUS_STOPPED:
                break
            time.sleep(0.01)

src/p/s/psutil-HEAD/test/test_psutil.py   psutil(Download)
        p.suspend()
        for x in range(100):
            if p.status == psutil.STATUS_STOPPED:
                break
            time.sleep(0.01)
        self.assertEqual(str(p.status), "stopped")
        p.resume()
        assert p.status != psutil.STATUS_STOPPED, p.status