Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

src/k/a/ka-lite-HEAD/kalite/utils/set_process_priority.py   ka-lite(Download)
        elif priority == "Lowest":
            this_process.nice = 19
            this_process.set_ionice(psutil.IOPRIO_CLASS_IDLE)
        elif priority == "Normal":
            this_process.nice = 0

src/p/y/pyioc-HEAD/client/pyiocClient.py   pyioc(Download)
        #-20 to 20, higher is lower priority.
        p.nice = 0  
        p.set_ionice(psutil.IOPRIO_CLASS_IDLE)
 
    if PLATFORM=='win':

src/r/w/rwbackend-HEAD/backend/filemonitor.py   rwbackend(Download)
	p = psutil.Process(os.getpid())
	p.set_nice(10)
	p.set_ionice(psutil.IOPRIO_CLASS_IDLE)
 
	if full_scan:

src/p/s/psutil-2.1.1/test/test_psutil.py   psutil(Download)
    def test_ionice(self):
        if LINUX:
            from psutil import (IOPRIO_CLASS_NONE, IOPRIO_CLASS_RT,
                                IOPRIO_CLASS_BE, IOPRIO_CLASS_IDLE)
            self.assertEqual(IOPRIO_CLASS_NONE, 0)

src/p/s/psutil-HEAD/test/test_psutil.py   psutil(Download)
    def test_get_set_ionice(self):
        from psutil import (IOPRIO_CLASS_NONE, IOPRIO_CLASS_RT, IOPRIO_CLASS_BE,
                            IOPRIO_CLASS_IDLE)
        self.assertEqual(IOPRIO_CLASS_NONE, 0)
        self.assertEqual(IOPRIO_CLASS_RT, 1)