Message236690
Detecting the number of processors available to a process is a distinct concept from reporting the number of processors present on a system. cpu_count is currently focused on the latter.
Functionality to report the number of effectively-available processors is indeed valuable information to have in certain situations but it is also something very OS-dependent (I mean the support for it is not present in all OSes, let alone the complication of how to access such information differing across OSes).
I think a strong case can be made that cpu_count's current functionality should not change -- the information it provides is very important to have access to.
Cool tools like psutil (https://pypi.python.org/pypi/psutil) help cover a great range of genuine needs when making use of processor affinity. |
|
Date |
User |
Action |
Args |
2015-02-26 17:23:10 | davin | set | recipients:
+ davin, neologix, jtaylor |
2015-02-26 17:23:10 | davin | set | messageid: <1424971390.54.0.817315908285.issue23530@psf.upfronthosting.co.za> |
2015-02-26 17:23:10 | davin | link | issue23530 messages |
2015-02-26 17:23:10 | davin | create | |
|