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 serhiy.storchaka
Recipients Yogesh.Chaudhari, ezio.melotti, kushal.das, nedbat, neologix, pitrou, r.david.murray, serhiy.storchaka, trent, vstinner
Date 2013-05-11.13:10:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Since the user can't do anything except falling back to 1,
> os.cpu_count() should always return a positive number (1 by default).

In general I agree with you. Actually the os module should contains two functions: cpu_count() which fallbacks to 1 and is_cpu_counting_supported() for rare need. But this looks even more ugly and I choose single function even if in most cases I need use strange idiom.
Date User Action Args
2013-05-11 13:10:34serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, vstinner, nedbat, trent, ezio.melotti, r.david.murray, neologix, kushal.das, Yogesh.Chaudhari
2013-05-11 13:10:34serhiy.storchakasetmessageid: <>
2013-05-11 13:10:34serhiy.storchakalinkissue17914 messages
2013-05-11 13:10:34serhiy.storchakacreate