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 <1368277834.27.0.160923591645.issue17914@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
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: <1368277834.27.0.160923591645.issue17914@psf.upfronthosting.co.za>
2013-05-11 13:10:34serhiy.storchakalinkissue17914 messages
2013-05-11 13:10:34serhiy.storchakacreate