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)
        if priority == "Low":
            this_process.nice = 5
            this_process.set_ionice(psutil.IOPRIO_CLASS_BE)
        elif priority == "Lowest":
            this_process.nice = 19
            this_process.set_ionice(psutil.IOPRIO_CLASS_IDLE)
        elif priority == "Normal":
            this_process.nice = 0
            this_process.set_ionice(psutil.IOPRIO_CLASS_BE)

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)