Message189099
> * 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. |
|
Date |
User |
Action |
Args |
2013-05-13 05:57:19 | pitrou | set | recipients:
+ pitrou, vstinner, nedbat, trent, ezio.melotti, r.david.murray, neologix, serhiy.storchaka, kushal.das, dilettant, Yogesh.Chaudhari |
2013-05-13 05:57:19 | pitrou | link | issue17914 messages |
2013-05-13 05:57:19 | pitrou | create | |
|