Did I find the right examples for you? yes no

# psutil.IOPRIO_CLASS_IDLE

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...)
```

```        elif priority == "Lowest":
this_process.nice = 19
this_process.set_ionice(psutil.IOPRIO_CLASS_IDLE)
elif priority == "Normal":
this_process.nice = 0
```

```        #-20 to 20, higher is lower priority.
p.nice = 0
p.set_ionice(psutil.IOPRIO_CLASS_IDLE)

if PLATFORM=='win':
```

```	p = psutil.Process(os.getpid())
p.set_nice(10)
p.set_ionice(psutil.IOPRIO_CLASS_IDLE)

if full_scan:
```

```    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)
```

```    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)
```