[Python-Dev] os.getpriority() and os.setpriority() (original) (raw)

Giampaolo RodolĂ  g.rodola at gmail.com
Tue Dec 28 03:04:31 CET 2010


Hi all, after having implemented something very similar in psutil: http://code.google.com/p/psutil/issues/detail?id=142 ...I decided to contribute a patch for exposing getpriority() and setpriority() system calls in the os module: http://bugs.python.org/issue10784

This was also raised some time ago: http://mail.python.org/pipermail/python-ideas/2009-April/004028.html ...and it seems feedbacks were positive.

I think it would be nice to have Windows equivalents (GetPriorityClass / SetPriorityClass) as well but I'm not sure how since their notation is different.

Regards,

--- Giampaolo http://code.google.com/p/pyftpdlib http://code.google.com/p/psutil



More information about the Python-Dev mailing list