[New-bugs-announce] [issue10784] os.getpriority() and os.setpriority()

Giampaolo Rodola' report at bugs.python.org
Tue Dec 28 02:46:50 CET 2010

New submission from Giampaolo Rodola' <g.rodola at gmail.com>:

After having implemented a similar thing in psutil ( http://code.google.com/p/psutil/issues/detail?id=142 ) I decided to contribute a patch for Python which exposes getpriority() and setpriority() POSIX calls in the os module.

They can be used to get/set process niceness/priority in a fashion similar to os.nice() but extended to *all* processes instead of just os.getpid():

assignee: giampaolo.rodola
keywords: patch
messages: 124751
nosy: giampaolo.rodola, loewis, pitrou
priority: normal
severity: normal
status: open
title: os.getpriority() and os.setpriority()
versions: Python 3.3

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list