Message188628
Returning None sounds reasonable to me.
Raising an exception pretty much means that the function should always be called in a try/except (unless you are sure that the code is running on an OS that knows the number of CPUs). Returning -1 is not very Pythonic, and between 0 and None I prefer the latter, since it's IMHO a clearer indication that the value couldn't be determined. |
|
| Date |
User |
Action |
Args |
| 2013-05-07 07:28:13 | ezio.melotti | set | recipients:
+ ezio.melotti, pitrou, vstinner, nedbat, trent, neologix, kushal.das |
| 2013-05-07 07:28:13 | ezio.melotti | set | messageid: <[email protected]> |
| 2013-05-07 07:28:13 | ezio.melotti | link | issue17914 messages |
| 2013-05-07 07:28:13 | ezio.melotti | create | |
|