[docs] [issue23083] sys.exit with bool parameter

R. David Murray report at bugs.python.org
Thu Dec 18 16:15:54 CET 2014


R. David Murray added the comment:

>>> issubclass(bool, int)
True
>>> True == 1
True
[41846 refs]
>>> False == 0
True

This is fundamental to Python, so it is not obvious that it is a good idea to mention bool explicitly in the sys.exit docs.  Perhaps we could change it to say "int (or an int subclass such as bool)".

----------
nosy: +r.david.murray
versions:  -Python 3.2, Python 3.3, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23083>
_______________________________________


More information about the docs mailing list