[Python-Dev] os.ioprio_get() and os.ioprio_set()
solipsis at pitrou.net
Mon Jan 17 15:13:39 CET 2011
On Mon, 17 Jan 2011 14:53:19 +0100
Giampaolo Rodolà <g.rodola at gmail.com> wrote:
> I've recently implemented this functionality in psutil:
> If desired, I can contribute a patch for the os module, altough being
> such functions Linux-only, I'm not sure os module is the right place
> for them to land.
> Also, I've been thinking about this for quite a bit: would it be the
> case to add system-specific modules such as "linux" (and maybe also a
> "win32") to the standard library?
The problem with something named "linux" is that when some of these
APIs get ported to other Unix variants, things will get very confusing.
"win32" is different since it's quite unlikely for some
Windows-specific APIs to get ported to other OSes.
More information about the Python-Dev