Message188912
> And I maintain it's an ugly idiom ;-)
> Since the user can't do anything except falling back to 1,
> os.cpu_count() should always return a positive number (1 by default).
The user can also raise an error. For example, if I'm writing a
benchmark to measure per-core scaling performance, I would like to bail
out if I can't calculate the number of cores (rather than report
incorrect results). |
|
Date |
User |
Action |
Args |
2013-05-11 12:26:33 | pitrou | set | recipients:
+ pitrou, vstinner, nedbat, trent, ezio.melotti, r.david.murray, neologix, serhiy.storchaka, kushal.das, Yogesh.Chaudhari |
2013-05-11 12:26:33 | pitrou | link | issue17914 messages |
2013-05-11 12:26:33 | pitrou | create | |
|