This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients mark, steve.dower, tim.golden, vstinner, zach.ware
Date 2014-12-12.13:13:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The code getting the number of processors on Windows is different between the multiprocessing (Python 3.3) and os (Python 3.5) modules.

multiprocessing (old code):

            num = int(os.environ['NUMBER_OF_PROCESSORS'])
        except (ValueError, KeyError):
            num = 0

os (new code):

    SYSTEM_INFO sysinfo;
    ncpu = sysinfo.dwNumberOfProcessors;

os.cpu_count() is already implemented with GetSystemInfo() in Python 3.5, so this issue can be closed. Thanks for the reminder Mark, it was useful to double check.

If you want to take a look at the source code:
Date User Action Args
2014-12-12 13:13:57vstinnersetrecipients: + vstinner, tim.golden, mark, zach.ware, steve.dower
2014-12-12 13:13:57vstinnersetmessageid: <>
2014-12-12 13:13:57vstinnerlinkissue23037 messages
2014-12-12 13:13:57vstinnercreate