Re: [Python-ideas] Add os.usable_cpu_count()

2017-09-05 Thread Giampaolo Rodola'
On Tue, Sep 5, 2017 at 12:59 PM, Nathaniel Smith wrote: > On Mon, Sep 4, 2017 at 8:59 PM, Giampaolo Rodola' > wrote: > > Recently os.cpu_count() on Windows has been fixed in order to take > process > > groups into account and return the number of all

Re: [Python-ideas] Add os.usable_cpu_count()

2017-09-04 Thread Nathaniel Smith
On Mon, Sep 4, 2017 at 8:59 PM, Giampaolo Rodola' wrote: > Recently os.cpu_count() on Windows has been fixed in order to take process > groups into account and return the number of all available CPUs: > http://bugs.python.org/issue30581 > This made me realize that

[Python-ideas] Add os.usable_cpu_count()

2017-09-04 Thread Giampaolo Rodola'
Recently os.cpu_count() on Windows has been fixed in order to take process groups into account and return the number of all available CPUs: http://bugs.python.org/issue30581 This made me realize that os.cpu_count() does not return the number of *usable* CPUs, which could possibly represent a