This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients jszakmeister, ned.deily, ronaldoussoren, sbt, trent, vstinner
Date 2013-03-19.07:54:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwYS2Jd4kePNdPMRuZz5ovgtfjza9Q-gVxfKDSqvhH1avg@mail.gmail.com>
In-reply-to <1363665009.25.0.198921564428.issue17444@psf.upfronthosting.co.za>
Content
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 <report@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 <report@bugs.python.org>
> <http://bugs.python.org/issue17444>
> _______________________________________
History
Date User Action Args
2013-03-19 07:54:54vstinnersetrecipients: + vstinner, ronaldoussoren, jszakmeister, ned.deily, trent, sbt
2013-03-19 07:54:54vstinnerlinkissue17444 messages
2013-03-19 07:54:54vstinnercreate