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

"Martin v. Löwis" martin at v.loewis.de
Tue Dec 28 21:11:56 CET 2010


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 Get/SetThreadPriority along with it.

I think Python should incorporate something like pywin32, to expose all APIs whole-sale, in a type-safe manner (unlike ctypes).

Regards, Martin



More information about the Python-Dev mailing list