Message188918
> 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:34 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, vstinner, nedbat, trent, ezio.melotti, r.david.murray, neologix, kushal.das, Yogesh.Chaudhari |
2013-05-11 13:10:34 | serhiy.storchaka | set | messageid: <1368277834.27.0.160923591645.issue17914@psf.upfronthosting.co.za> |
2013-05-11 13:10:34 | serhiy.storchaka | link | issue17914 messages |
2013-05-11 13:10:34 | serhiy.storchaka | create | |
|