STINNER Victor added the comment:

I like the idea of a new function in the os module because I don't
like having to import the multiprocessing module just to known the
number of CPUs. I'm using such function to set MAKEFLAGS envrionment
variable on Linux: -j8 par example.

2013/3/19 Trent Nelson <rep...@bugs.python.org>:
>
> Trent Nelson added the comment:
>
> I remember looking at what multiprocessing did and not really liking it; I 
> ended up writing a C version that works across a wider range of platforms, 
> accessible via posixmodule.c:posix_cpu_count() (os.cpu_count()):
>
> http://hg.python.org/sandbox/trent/file/dd1c2fd3aa31/Modules/posixmodule.c#l10213
>
> ----------
> nosy: +trent
>
> _______________________________________
> Python tracker <rep...@bugs.python.org>
> <http://bugs.python.org/issue17444>
> _______________________________________

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17444>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to