bpo-30581: Backport to 3.6: Windows: os.cpu_count() returns wrong number of processors by crwilcox · Pull Request #3267 · python/cpython

@crwilcox

@crwilcox

…python#2934)

* Fixes python#30581 by adding a path to use newer GetMaximumProcessorCount API on Windows calls to os.cpu_count()

* Add NEWS.d entry for bpo-30581, os.cpu_count on Windows.

* Tweak NEWS entry

@crwilcox crwilcox changed the title Backport bp0-30581 to 3.6: Windows: os.cpu_count() returns wrong number of processors bp0-30581: Backport to 3.6: Windows: os.cpu_count() returns wrong number of processors

Sep 1, 2017

@crwilcox crwilcox changed the title bp0-30581: Backport to 3.6: Windows: os.cpu_count() returns wrong number of processors bpo-30581: Backport to 3.6: Windows: os.cpu_count() returns wrong number of processors

Sep 1, 2017

@pitrou

Thank you for the backport! Now merging.