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> _______________________________________