On Mon, 17 Jan 2011 14:53:19 +0100
Giampaolo RodolĂ  <g.rod...@gmail.com> wrote:
> I've recently implemented this functionality in psutil:
> http://code.google.com/p/psutil/issues/detail?id=147
> 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.

Regards

Antoine.


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to