[issue17914] add os.cpu_count()

Yogesh Chaudhari report at bugs.python.org
Sat May 11 13:34:24 CEST 2013


Yogesh Chaudhari added the comment:

Based on the conversation and the particular inputs to the thread form neologix and ezio, I would like to submit this patch. 

It probably needs modification(s) as I am not sure what to do with the implementation that is already present in multiprocessing. This patch simply calls the os.cpu_count() from multiprocessing now and behaves as it would have previously.

The test cases are also added to test_os similar to ones from multiprocessing.

----------
components: +2to3 (2.x to 3.x conversion tool)
keywords: +patch
nosy: +Yogesh.Chaudhari
Added file: http://bugs.python.org/file30217/issue17914.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17914>
_______________________________________


More information about the Python-bugs-list mailing list