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 pitrou
Recipients Yogesh.Chaudhari, ezio.melotti, kushal.das, nedbat, neologix, pitrou, r.david.murray, serhiy.storchaka, trent, vstinner
Date 2013-05-11.12:26:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1368275190.2537.1.camel@fsol>
In-reply-to <CAH_1eM0rCKiwhK71nkZyUDufjfyL6NN9hSgRDwadKt5YMvbKJw@mail.gmail.com>
Content
> 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).
History
Date User Action Args
2013-05-11 12:26:33pitrousetrecipients: + pitrou, vstinner, nedbat, trent, ezio.melotti, r.david.murray, neologix, serhiy.storchaka, kushal.das, Yogesh.Chaudhari
2013-05-11 12:26:33pitroulinkissue17914 messages
2013-05-11 12:26:33pitroucreate