Author pitrou
Recipients Yogesh.Chaudhari, dilettant, ezio.melotti, kushal.das, nedbat, neologix, pitrou, r.david.murray, serhiy.storchaka, trent, vstinner
Date 2013-05-13.05:57:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368424636.2557.0.camel@fsol>
In-reply-to <1368402972.0.0.444255584628.issue17914@psf.upfronthosting.co.za>
Content
>  * add a os.cpu_count() which returns the raw value (may be zero or
> negative if the OS returns a dummy value) and raise an OSError on
> error
>  * os.cpu_count() is not available on all platforms
>  * shutil.cpu_count() is the high level API using 1 as a fallback. The
> fallback value (which is 1 by default) is configurable, ex:
> shutil.cpu_count(fallback=None) returns None on os.cpu_count() error.

-1. This is simply too complicated for a simple API. Just let
os.cpu_count() return None.
History
Date User Action Args
2013-05-13 05:57:19pitrousetrecipients: + pitrou, vstinner, nedbat, trent, ezio.melotti, r.david.murray, neologix, serhiy.storchaka, kushal.das, dilettant, Yogesh.Chaudhari
2013-05-13 05:57:19pitroulinkissue17914 messages
2013-05-13 05:57:19pitroucreate