[issue17914] add os.cpu_count()

Ned Batchelder report at bugs.python.org
Mon May 6 14:00:06 CEST 2013


Ned Batchelder added the comment:

Seriously, return zero, and I can use it as: cpu_count = os.cpu_count() or 1

Why throw away information?

----------

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


More information about the Python-bugs-list mailing list