Ezio Melotti added the comment:

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.

----------
nosy: +ezio.melotti

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17914>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to