[issue17914] add os.cpu_count()

STINNER Victor report at bugs.python.org
Tue May 7 00:33:14 CEST 2013


STINNER Victor added the comment:

I also vote +1 for returning None when the information is unknown.

Just write "os.cpu_count() or 1" if you need 1 when the count is unknown ;-)

----------
nosy: +haypo

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


More information about the Python-bugs-list mailing list