[Python-ideas] Add setpriority / getpriority to os module.

R. David Murray rdmurray at bitdance.com
Fri Apr 10 15:58:36 CEST 2009

Christian Heimes <lists at cheimes.de> wrote:
> Hello,
> I would like to add straight forward wrapper for the setpriority and
> getpriority functions to posixmodule.c for the os module. The functions
> allow to retrieve and modify the niceness of a process. They are in
> particular useful for multiprocessing to implement low priority
> processes. The functions are well known as 'nice' or 'renice' commands.
> The two functions and the constants PRIO_PROCESS, PRIO_PGRP, PRIO_USER,
> PRIO_MIN and PRIO_MAX should be available on most POSIX operating
> systems. A patch would come with autoconf tests for the feature.

I don't think there's likely to be much controversy about putting
these in.

R. David Murray             http://www.bitdance.com

More information about the Python-ideas mailing list