Re: [Python-Dev] os.getpriority() and os.setpriority()

2010-12-28 Thread Martin v. Löwis
> 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. I don't mind exposing it (somewhere), however, it should keep its original name. In addition, you probably need OpenProcess, as well as

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

2010-12-27 Thread Giampaolo Rodolà
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 ag